What is difference between Association, Aggregation and Inheritance relationships?

Difference between Association, Aggregation and Inheritance relationships.

An Association is a relationship between similar objects or objects with common structures.

An employee object is associated with manager object.
Aggregation is “a part of” relationship.

A student object is a part of College object.
Inheritance is a “is a “relationship where one or more classes are derived from a base class. The derived class has the base class plus its own characteristics.

French_Student class can be a derived class of student class.
Explain the features of an abstract class in NET.
An Abstract class is only used for inheritance. This means it acts as a base class for its derived classes...
Difference between abstract classes and interfaces.
Following are the differences between abstract and interfaces...
Similarities and difference between Class and structure in .NET
Both Class and Structures can have methods, variables and objects...
Post your comment