Java Classes and Inheritance

A Class Hierarchy

Class Polyhedron

Class RectangularParallelopiped

Class Cube

Class Tetrahedron

Class Poly (The Application)

Output

Class (Static) Variables and Methods

Java Packages

Scopes of Member Names in Java

Scopes of Identifiers in Methods

Method Inheritance

Classes and Types

Upcasting and Downcasting

Summary