The document discusses inheritance in Java, defining it as a mechanism to create new classes from existing ones, with the parent class referred to as the super class and the new class as the subclass. Various forms of inheritance are outlined, including specialization, specification, construction, extension, limitation, and combination. The document emphasizes the advantages of inheritance, such as code reusability and the principle of substitutability.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0 ratings0% found this document useful (0 votes)
5 views5 pages
forms of inheritance
The document discusses inheritance in Java, defining it as a mechanism to create new classes from existing ones, with the parent class referred to as the super class and the new class as the subclass. Various forms of inheritance are outlined, including specialization, specification, construction, extension, limitation, and combination. The document emphasizes the advantages of inheritance, such as code reusability and the principle of substitutability.