Has a Relationship in C Sharp?
C# Aggregation (Has-a Relationship) in C#, Aggregation Is a Process in Which One Class Defines Another Class as Any Entity Reference. It Is Another Way to...
Is A and has-a relationship?
An IS-A relationship is inheritance. The classes which inherit are known as sub classes or child classes. On the other hand, HAS-A relationship is composition. In OOP, IS-A relationship is completely inheritance.
What is relationship in OOP?
Object oriented programming generally support 4 types of relationships that are: inheritance , association, composition and aggregation. All these relationship is based on "is a" relationship, "has-a" relationship and "part-of" relationship.