OOP allows subclasses to extend a class, both in terms of instance variables and methods.
A common practice it to let subclasses add instance variables; the subclass inherits all instance variables of its parent.
Multiple inheritance could cause problems of inconsistent offsets or name conflicts.
Contents    Page-10    Prev    Next    Page+10    Index