Professional Documents
Culture Documents
Shape shapes[]
static int numberOfShapes
Inventory()
Inventory(int sizeOfInventory)
void insertShape(Shape s)
void removeShape(Shape s)
void showAllShapes()
Shape
void showShapesByType(String type)
String typeOfShape
double area()
void setTypeofShape(String type)
String getTypeofShape()
void showDetails()
*** Create all the classes. Create an Extra class Named Start to demonstrate
the use of all the methods and polymorphic behavior of objects