Closed pkini2002 closed 1 year ago
Added an abstract class program that has an abstract class Figure with an abstract method area and two integer dimensions. Extend this class to inherit three more classes Rectangle, Triangle, and Square which implement the area method.
Added an abstract class program that has an abstract class Figure with an abstract method area and two integer dimensions. Extend this class to inherit three more classes Rectangle, Triangle, and Square which implement the area method.