Details of this Paper

3 classes




Design an abstract class called Shape. This class must contain a single constructor that accepts a single numeric value that can be used to calculate various v alues, one of which is area. Include an abstract method called findArea that can be defined to find the area of any shape. Also provide a concrete to return the area. Design two concrete classes, Circle and Square that inherits fhe class Shape. Each of these classes finds the respective area, i.e. area of circle and area of square. You are responsible for providing the relevant variables.


Paper#70010 | Written in 18-Jul-2015

Price : $27