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?
Discussion:
7 comments Page 1 of 1.
Anuhya said:
8 years ago
Explain the Inheritance concept.
Venkatakrishna said:
9 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.
{
}
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:
9 years ago
Can you tell me someone I am not understand this concept?
MuraliKrishnan said:
1 decade ago
Containment; a "has a" relationship and not a "is-a" relationship,
A:B.
A "Has a" B-relationship.
A "is a" B-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:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers