Write Java program for given scenarios below:
Create a class to print the area of a square and a rectangle. The class has two methods with the same name but different number of parameters. The method for printing area of rectangle has two parameters which are length and breadth respectively while the other method for printing area of square has one parameter which is side of square.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here