Home Segments Top Top Previous Next

253: Mainline

Because no direct superclass is specified for the Attraction class, the direct superclass of the Attraction class is taken to be the Object class—a class supplied by Java. Every class is a subclass of the Object class, but it is not necessarily a direct subclass.