Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What’s difference between Association, Aggregation and
Inheritance relationships?

Answer Posted / meenakshi sharma

Association- Association is used for establishing
relationship between classes. Association describes links
between(among) classes. For example, if a professor works
in a university then it can be represent as the assciation
relationship between professor and university class.

Aggregation-Aggregation is a concept that is used to
express "part-of" types of associations between
objects.Aggregation is seen as a relationship in which an
assembly class is related to component class. In this
component objects are not having seperate existence, they
depend on composite objects.

Inheritance-Inheritance is an object orientation concept
which allow reusability of design/code. Basic meaning of
inheritance is that if one class is already defined than
another class which also passes the property of existing
class can be defined and inherit the property of existing
class. For example, if a class named Student is defined and
another class for Post Graduate students is to be defined
then PG Student class can inherit the Student class.

Is This Answer Correct ?    13 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I run a cshtml file?

901


What is asynccallback c#?

1022


Explain the difference between private and shared assembly?

879


Hi to all..I have to create an intranet application on C#.NET windows Application so please please let can you people help me as iam new in .NET and if u have any samples or website address from where i can get sample please let know.

4207


What is eager and lazy loading in c#?

979


What is datetime parse in c#?

929


Define c# i/o classes?

910


Explain the difference between directcast and ctype.

981


What is null propagation c#?

991


What are the characteristics of c#?

881


Define Virtual folder?

1004


What is difference between hashtable and dictionary in c#?

935


Why do we use parameters in c#?

948


What is dll file in c#?

958


What is the difference between virtual method and abstract method?

962