Omoops 8
Omoops 8
CONCLUSION: Students are expected to List the error they are facing along with their solution
REFERENCES : https://docs.oracle.com/javase/tutorial/java/IandI/subclasses.html Java complete rwference
7th edition by Herbert Schildt Programming with JAVA by Balgurusamy
System.out.println("Square:");
figure.area(5);
System.out.println("\nTriangle:");
figure.area(4, 6);
System.out.println("\nRectangle:");
figure.area(3, 7);
System.out.println("\nCircle:");
figure.area(4.5);
}
}
Output: