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.