What is difference b/w Inheritance & aggregation? And Also b/w Aggregation and Composition in C+

 Dont Buy Textbooks. Rent 'EM Save 60-80%



With examples plz?

What is difference b/w Inheritance & aggregation? And Also b/w Aggregation and Composition in C++?c++ operator



Inheritance means you are making the child, aggregation is you are inlcuding it inside.

consider

class A

{

}

class B :: class A

{

}

This is inheritance. class N has inherited properties from class A.

while,

class B

{

class A classa;

}

This is aggregation as class A is now included in class B.

What is difference b/w Inheritance & aggregation? And Also b/w Aggregation and Composition in C++?c++ download



http://www.libertyassociates.com/pages/c...|||swathi

iam santhosh

from

India

u will find answer from above question

www.programmingincpp.com

Bye



More Related Questions and Answers ...
  • How can I find out if my husband has placed h..
  • What type of inheritance shows a pattern wher..
  • What are the disadvantages to declaring a fun..
  • What is the difference between a preprocessor..
  • How does the C++ compiler treat an inline fun..
  • C++ inline class member functions?
  • What is meant by Inline Function(method) in C..
  • What is difference between #include and #defi..
  • Inline functions in C++.?
  • Is Macro concept in C language and Inline fun..
  • An investor holds a portfolio that comprises ..
  • What is Inheritance in C++ language?
  • Would u pls explain Inheritance in C#?
  • What r the diff Types of Inheritance in C#?
  • What are the advantages and disadvantages of ..
  • Can somebody give me an example on polymorphi..
  • Is there an inheritance for angelica c metzga..
  • Can Anyone explain in detail the inheritance(..
  • I want a simple c++ program on hierarchical i..

  • The information post by website user , we not guarantee correctness.

    

    Dental Treatment Skin Whitening Skin Problems Skin Rashes Shoes