C# Programming - Inheritance - Discussion

Discussion Forum : Inheritance - General Questions (Q.No. 7)
7.
Which of the following should be used to implement a 'Has a' relationship between two entities?
Polymorphism
Templates
Containership
Encapsulation
Inheritance
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
7 comments Page 1 of 1.

Anuhya said:   8 years ago
Explain the Inheritance concept.

Venkatakrishna said:   8 years ago
public class A
{

}
public class B
{
static void Main()
{
}
}
The relationship between A and B is Has-a relationship


public class A
{

}
public class A:B
{

}

Therefore,
The relationship between A and B is : Is-a relationship.

Anbu said:   8 years ago
Can you tell me someone I am not understand this concept?

MuraliKrishnan said:   10 years ago
Containment; a "has a" relationship and not a "is-a" relationship,

A:B.
A "Has a" B-relationship.
A "is a" B-relationship.

Kasana said:   1 decade ago
Containment; a "has a" relationship and not a "is-a" relationship (inheritance).

Pushkaraj said:   1 decade ago
Can anybody help out of this question ?

Ramesh said:   1 decade ago
"Has a" means?

Post your comments here:

Your comments will be displayed after verification.