C# Inheritance Interview Questions and Answers - 1
What are the forms inheritance available?
The inheritance is achieved in two different forms. They are
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
When to use Inheritance?
Inheritance is suitable where the following situations arise.
Similarities, Extension, Relationship, Generalization, Specialization, Combination
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.
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.
1000+ Civil Engineering Interview Questions and Answers Pdf More
1000+ Civil Engineering Questions for Interview More
1000+ Building Materials and Construction Multiple Choice Questions More
1000+ Building Materials and Construction Objective Questions Pdf More
100+ Civil Engineering Question Papers with Answers Pdf More
TNPSC Group 1, 2, 2a, 4, VAO Inventions and Discoveries Quiz Questions More
List of Thermal, Atomic, Nuclear Power Plants/Projects in India Pdf More
Synonyms and Antonyms Pdf in English TNPSC Exams More
100+ Statement and Course of Action Reasoning Tips & Tricks More
Active and Passive Voice Questions for Bank Exams More