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

Method main

Programs/areaRect.java:15–27  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

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 2

getDataMethod · 0.95
calcAreaMethod · 0.95

Tested by

no test coverage detected