--%>

Aggregation and containment in the Programming

Illustrate the basic difference between Aggregation and containment in the Programming?

E

Expert

Verified

Aggregation is a relationship between the whole and a part. We can add or subtract some of the properties in the part (or slave) side. It won’t influence the whole part.

Best illustration is Car that comprises the wheels and some additional parts. Even although the parts are not there we can call it as car.

However, in the case of containment the entire part is influenced when the part in that got influenced. The human body is an apt instance for this relationship. Whenever the whole body dies the parts (heart and so on) are died.

   Related Questions in Programming Languages

  • Q : What is testing What is testing?

    What is testing?

  • Q : State the term an XHTML Element State

    State the term an XHTML Element?

  • Q : What is an Exception handler Exception

    Exception handler: It is a try statement which acts as an exception handler - a place where exception objects are dealt and caught with.

  • Q : How does XML maintain white-space in

    How does XML maintain white-space in any documents?

  • Q : Define Thread Thread : It is a

    Thread: It is a lightweight procedure which is managed by the Java Virtual Machine (abbreviated as JVM). Support for threads is given by the Thread class in java.lang package.

  • Q : State the terms preemption and context

    State the terms preemption and context switching.

  • Q : What does compatibility testing include

    What does compatibility testing include and who will perform the testing?

  • Q : What is Variable Variable : It is the

    Variable: It is the memory block of specific size where value can be stored and modified throughout program execution. Example: int x, float y, float amount, char c;

  • Q : State the term non-XML resources State

    State the term non-XML resources?

  • Q : Java program to sort ten numbers using

    Q. Write a java program to sort ten numbers using bubble sort method. Ans. class Bubble sort

    Discover Q & A

    Leading Solution Library
    Avail More Than 1412795 Solved problems, classrooms assignments, textbook's solutions, for quick Downloads
    No hassle, Instant Access
    Start Discovering

    18,76,764

    1926359
    Asked

    3,689

    Active Tutors

    1412795

    Questions
    Answered

    Start Excelling in your courses, Ask an Expert and get answers for your homework and assignments!!

    Submit Assignment

    ©TutorsGlobe All rights reserved 2022-2023.