The top-level class named X

Listing 2 shows the top-level class named X.

Class A extends this class to illustrate the difference between the inheritance hierarchy and the containment hierarchy.

Listing 2. The top-level class named X.
class X{
  protected int xVar = 1000;
}//end class X
File: cf.htm [Next] [Prev]