When do you prefer to use composition than aggregation?
Answer / naveen sisupalan
Composition is a stronger form of aggregation. If you are
sure that the life of the part is managed entirely by the
whole then you can go for composition. Without whole, the
part can't exist also.
Is This Answer Correct ? | 7 Yes | 0 No |
Explain about polymorphism?
Define Data Abstraction. What is its importance?
Is class an Object? Is object a class?
What are the four important foundation concepts of OOP ?
What are a base class, subclass, and superclass?
Can we override a method by using same method name and arguments but different return types?
What is a static method? Why do we need static methods in java 8 interfaces?
What is bootstrap, extension and system class loader?
What is a Persistent, Transient Object?
What is super keyword?
What is the use of Operator Overloading?
How many methods are there in the externalizable interface?