C# Programming - Inheritance - Discussion

Discussion Forum : Inheritance - General Questions (Q.No. 1)
1.
Which of the following can be facilitated by the Inheritance mechanism?
  1. Use the existing functionality of base class.
  2. Overrride the existing functionality of base class.
  3. Implement new functionality in the derived class.
  4. Implement polymorphic behaviour.
  5. Implement containership.
1, 2, 3
3, 4
2, 4, 5
3, 5
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
13 comments Page 2 of 2.

Abhishek said:   1 decade ago
Why is this "Implement polymorphic behaviour" is not included?

P.vijayan said:   1 decade ago
Inherit means getting the property off.

Base class -> derived class.

Derived class has the features of base class and as its own.

Nasreen Khan said:   1 decade ago
It is correct as inheritance is the mechanism of deriving a new class from the base class, thus we can excess the functionality of base class in derived class.


Post your comments here:

Your comments will be displayed after verification.