--%>

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 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 : Use of Macros used in windows-dot-h

    What is the use of Macros used in <windows.h> header files?

  • Q : Syntax to create AJAX objects Write the

    Write the syntax to create the AJAX objects?

  • Q : Describe object-oriented programming

    Briefly describe object-oriented programming (OOP)?

  • Q : What is Big-endian Big-endian : This is

    Big-endian: This is a common difference among machines, the order in which they store individual bytes of multi-byte numerical data. Big-endian machine stores the higher-order bytes previous to the lower-order bytes.

  • Q : Use of new operator What is the use of

    What is the use of new operator?

  • Q : What is message queue Describe the

    Describe the message queue?

  • Q : Kernel Mode Illustrate what are the

    Illustrate what are the different functions of Kernel Mode, interrupts and system calls?

  • Q : Explain Variable declaration Variable

    Variable declaration: It is the association of a variable with a specific type. It is significant to make a distinction among the declaration of variables of primitive types and such of class types. The variable of primitive type performs as a contain

  • Q : Explain Object reference Object

    Object reference: It is a reference to an object. Languages other than Java employ terms like pointer or address or. It is significant to keep the difference clear between an object and its reference. The variable like argo

    Discover Q & A

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

    18,76,764

    1955867
    Asked

    3,689

    Active Tutors

    1421251

    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.