All Java objects inherit from an ultimate  base class called

Object

 

In this way, any type of object can be put in a container, such as a Stack or Vector, which contains Object' s.

This is called dynamic polymorphism.

 

To Next Slide To Previous Slide To Contents