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

Method rectArea

Programs/constructors.java:10–15  ·  view source on GitHub ↗
(Area a)

Source from the content-addressed store, hash-verified

8 }
9 // Function to calculate area of rectangle
10 void rectArea(Area a) {
11 System.out.println("Length = " + a.length); // Printing length
12 System.out.println("Breadth = " + a.breadth); // Printing breadth
13 int area = a.length * a.breadth; // Calculating area
14 System.out.println("Area of rectangle is: " + area); // Printing area
15 }
16}
17
18public class constructors {

Callers 1

mainMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected