| 12 | } |
| 13 | } |
| 14 | public class AreaRect { |
| 15 | public static void main(String[] args) { |
| 16 | // TODO Auto-generated method stub |
| 17 | int a1, a2; |
| 18 | Rectangle r1 = new Rectangle(); |
| 19 | Rectangle r2 = new Rectangle(); |
| 20 | r1.l = 10; |
| 21 | r1.b = 15; |
| 22 | a1 = r1.l * r1.b; |
| 23 | r2.getData(20, 30); |
| 24 | a2 = r2.calcArea(); |
| 25 | System.out.println("The area of first rectangle = " + a1); |
| 26 | System.out.println("The area of second rectangle = " + a2); |
| 27 | } |
| 28 | } |
nothing calls this directly
no outgoing calls
no test coverage detected