A subclass with more than one superclass is called a shared subclass. A subclass inherits attributes not only of its direct superclass, but also of all its predecessor superclass, that is it has multiple inheritance from its super classes. In multiple inheritance a subclass can be subclass of more than one superclass.
If the postgraduate student is a teaching assistant, then he inherits the characteristics of faculty as well as student class. This process is called multiple inheritance.
0 comments :
Post a Comment
Note: only a member of this blog may post a comment.