The difference is typically expressed as the difference between “is a” and “has a”. Inheritance, the “is a” relationship, is summed up nicely in the Liskov Substitution Principle. Aggregation, the “has a” relationship, is just that – it shows that the aggregating object has one of the aggregated objects .6 Kas 2008
Read moreWhat are base class and derived class with reference to OOP?
A base class is also called parent class or superclass. Derived Class: A class that is created from an existing class . The derived class inherits all members and member functions of a base class. The derived class can have more functionality with respect to the Base class and can easily access the Base class.
Read moreWhat are the 4 features of Java?
Those features are :
Read moreWhat is Java and features of Java?
Java Features Java is platform-independent . Some programs developed in one machine can be executed in another machine. It is designed for building object-oriented applications. It is a multithreaded language with automatic memory management. It is created for the distributed environment of the Internet.12 Şub 2022
Read moreWhat are the Java 7 features?
JDK 7 New Features
Read moreWhat are the 12 most important features of Java?
Java 12 features
Read moreWhat do you mean by polymorphism?
Definition of polymorphism : the quality or state of existing in or assuming different forms : such as. a(1) : existence of a species in several forms independent of the variations of sex. (2) : existence of a gene in several allelic forms also : a variation in a specific DNA sequence.
Read more