Create a class figure which cannot be instantiated


Problem: Create a class Figure which cannot be instantiated, with a method area and two integer dimensions. Extend this class to inherit three more classes Rectangle, Triangle and Square. Show how the area can be computed dynamically during run time for Rectangle, Square and Triangle to achieve dynamic polymorphism. Write the program in JAVA and comment on the code.

Request for Solution File

Ask an Expert for Answer!!
JAVA Programming: Create a class figure which cannot be instantiated
Reference No:- TGS03252139

Expected delivery within 24 Hours