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

Method Area

Programs/constructors.java:5–8  ·  view source on GitHub ↗
(int m, int n)

Source from the content-addressed store, hash-verified

3 int length, breadth;
4 // Parameterized constructor
5 Area(int m, int n) {
6 length = m;
7 breadth = n;
8 }
9 // Function to calculate area of rectangle
10 void rectArea(Area a) {
11 System.out.println("Length = " + a.length); // Printing length

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected