This preview shows page 1. Sign up to view the full content.
Unformatted text preview: 2. Create a class named Square that contains data fields for height, width and surfaceArea, and a method named computeSurfaceArea(). Create a child class named Cube. Cube contains an additional data field named depth and a computeSurfaceArea() method that overrides the parent method. Write an app that instantiates objects of both classes....
View Full Document
This note was uploaded on 10/04/2010 for the course COMPUTER S 106 taught by Professor Moore during the Spring '08 term at Clark Atlanta.
- Spring '08