I am working on this assignment, but do not really understand it. I can't tell what the output is going to be like. Please help me to understand it. Thank you very much. Here is the assignment:
Minimum Requirements
Create a hierarchy of classes (Cube, Box, Case, Suitcase, see below) to demonstrate your understanding of inheritance and polymophism; you will need additional methods and variables and should create them as appropriate. The information below constitutes general guidelines; you should be guided by your judgment. Create a Test Applet (using JOptionPane is fine) to put your classes through the paces. Instantiate 2 objects for each non-abstract type. Print using instantiated objects. Create an array of references using the base class type. Assign instantiated objects to the array. Print using array of references. (Need not access all subclass data.) Change the data in the instantiated objects using the array. Print again. Print a message to the console using System.out.println in each method you write (e.g., "in class.method"). Document your code professionally. Be creative.