(int a)
| 2 | package overloading; |
| 3 | class SqRectArea { |
| 4 | public void Area(int a) { |
| 5 | System.out.println("The side of square = " + a); |
| 6 | System.out.println("The area of square = " + (a * a)); |
| 7 | } |
| 8 | public void Area(int l, int b) { |
| 9 | System.out.println("Length = " + l); |
| 10 | System.out.println("Breadth = " + b); |