Inheritance is a mechanism that allows a class to be a subclass of a superclass,and thereby inherit variables and methods of the superclass.
Inheritance is a key concept that underlies IS-A, polymorphism, overriding, overloading, and casting.
All classes (except class Object), are subclasses of type Object, and therefore they inherit Object's methods.
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment