C# Inheritance Interview Questions and Answers - 1
Question: 1
What are the forms inheritance available?
The inheritance is achieved in two different forms. They are
Classical inheritance
Containment inheritance
Question: 2
How to implement Inheritance?
To implement the inheritance, the following are the steps:
Declare a base class
Inherit the derived class from the base class.
Declare the new class to make use of the both above classes
Question: 3
When to use Inheritance?
Inheritance is suitable where the following situations arise.
Similarities, Extension, Relationship, Generalization, Specialization, Combination
Question: 4
What is called abstract method?
A method that has the keyword abstract in the header of its declaration is said to be an abstract method.
An abstract method has no implementation. It will be overridden in the derived classes.
An abstract method is treated as a virtual method.
Question: 5
Define polymorphism?
Polymorphism means one name many forms.
It is the capability of one object to behave in multiple ways.
The polymorphism can be achieved in two ways.
TNPSC History Topic Wise Questions Pdf Download More
TNPSC Educational Development in India Class 8 Questions Pdf More
TNPSC Geography Topic Wise Questions Pdf Download More
Social Science Industries Class 8 Questions and Answers More
TNPSC History Rural Life and Society Questions Pdf More
1000+ IBPS Bank Exam Questions and Answers Pdf More
Assertion and Reason Questions for IBPS, SBI, RBI, RRB Bank Exams More
Computer Awareness Questions Asked in IBPS RRB PO Mains 2021-2022 More
IBPS GK Questions with Answers 2024-2025 More
Top 100+ Indian Constitution MCQS with Answers 2019-2020 More