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


Please Help Members By Posting Answers For Below Questions

If a method definition has been specified in the base class and the interface which the class is implementing, which definition will be picked if we try to access it using interface reference and class object?

524


What is the difference between a class and an object?

534


Explain what is polymorphism?

616


What are the methods required to create changes in subclasses?

558


What is the difference between aggregation and composition?

517






Tell me something about abstract classes?

571


What is virtual multiple inheritance?

561


Can an interface implement or extend another interface?

563


What is an abstraction and why is it important?

580


Can an interface inherit from another interface?

573


What is the difference between multiple and multilevel inheritance?

580


What is the difference between an abstract class and interface in java?

565


What is the difference between class inheritance and interface inheritance?

589


Why is OOP good?

578


What is the difference between a virtual method and an abstract method?

538