Differentiate between Aggregation and containment?
Answer Posted / msh
Aggregation is interobject relationship. This relationship
occurs when one class contains another class.
| Is This Answer Correct ? | 4 Yes | 3 No |
Post New Answer View All Answers
What is multiple inheritance? How java 8 supports multiple inheritance?
What are a base class, subclass, and superclass?
What is bootstrap, extension and system class loader?
What does the “abstract” keyword mean in front of a method? A class?
What is the difference abstract class and interface?
what are the different ways for a method to be overloaded?
Which OOPS concept exposes only the necessary information to the calling functions?
Can we override static methods? Why?
What are the features of encapsulation ?
Can we access interface static method using interface references?
What is the use of interface?
Can we have default method with same name and signature in the derived interface as the static method in base interface and vice versa?
What if we override the conflicting method in the class?
What do you mean by virtual function and virtual classes?
What is the use if instanceof keyword?