next up previous contents
Next: The ISA Relationship Up: Inheritance Previous: Inheritance   Contents

Single and Multiple Inheritance

Some object-oriented languages like C++ allow for so-called multiple inheritance. This means that a new class can be derived from more than one base class. This has advantages in some cases, but can lead to difficulties in other cases. JAVA does not support multiple inheritance but provides a special mechanism called an interface to provide the same result. It is mentioned simply to inform you that OOP language may, or may not provide mechanisms to achieve the same end result.



Olexiy Ye. Tykhomyrov 2001-12-16