The world of shapes is much richer than the shapes included in the inheritance hierarchy of Fig. 12.3. Write down all the shapes you can think of—both two-dimensional and three-dimen- sional—and form them into a more complete Shape hierarchy with as many levels as possible. Your hierarchy should have the base class Shape from which class TwoDimensionalShape and class ThreeD- imensionalShape
are derived. [Note: You do not need to write any code for this exercise.] We will use this hierarchy in the exercises of Chapter 13 to process a set of distinct shapes as objects of base- class Shape.
What will be an ideal response?

You might also like to view...
Write a program similar to the one in Listing 10.10 that can write an arbitrary number of Species objects to a binary file. (Species appears in Listing 5.19 of Chapter 5.) Read the file name and the data for the objects from a text file that you create by using a text editor. Then write another program that can search a binary file created by your first program and show the user the data for any requested endangered species. The user gives the file name and then enters the name of the species. The program either displays all the data for that species or gives a message if that species is not in the file. Allow the user to either enter additional species’ names or quit.
This project requires careful placement of try/catch blocks to gracefully respond to file names and Species that do not exist, and, at the same time, allow the user to continue looking for Species in a file or choose another file to search.
Write a script that reads in two integers and determines and outputs HTML text that displays whether the first is a multiple of the second. (Hint: Use the modulus operator.)
What will be an ideal response?
Give two reasons for using a telephony WAN connection.
What will be an ideal response?
To provide both encryption and integrity protection, WPA2 uses AES encryption with:
What will be an ideal response?