MCPcopy Create free account
hub / github.com/PrajaktaSathe/Java / AreaRect

Class AreaRect

Programs/areaRect.java:14–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12 }
13}
14public 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}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected