What is the purpose of class "Object" which is base class for all classes?Please reply my post if anybody knows the answer.
It carries useful methods like toString, that way every object in Java (literally a derivative of the Object class), has a toString method on it.
An Abstract Base Class in object oriented programming is a class that is meant to be extended by sub-classes but is never meant to be instantiated directly. The base class is designed to provide a common interface and set of core functionality to all of its sub-classes. Now, while an abstract base class is not meant to be instantiated directly, often times, it's constructor functionality is part of the core functionality that we want to make available to its sub-classes.
Last edited by WebbyAlisha; 10-27-2009 at 06:40 AM.