Object and Class classes

Java-Object and Class classes

Object The Object class is a superclass of all other classes. This means all other classes are subclass of the Object class. Object has eleven methods : A reference variable of a superclass can be assigned a reference to any subclass derived from that superclass. Thus, a reference variable of type Object can store a reference … Read more…