Home »
Aptitude Questions and Answers »
C# Aptitude Questions and Answers
C# Inheritance Aptitude Questions and Answers | Set 1
C# Inheritance Aptitude Questions | Set 1: This section contains aptitude questions and answers on C# Inheritance.
Submitted by Nidhi, on April 14, 2020
1) There are following statements are given below, which of them are correct about inheritance in C#.NET?
- Inheritance is a mechanism to create a class with existing features of another class.
- Inheritance is an important concept OOP's
- It does not support reusability.
- Inheritance does not support in C#.NET
Options:
- Only B
- Only C
- A and B
- Only D
Correct answer: 3
A and B
The A and B are correct statements about inheritance in C#.NET.
2) There are the following options are given below, which of them are used for reusability in C#.NET?
- Inheritance
- Containership
- Polymorphism
- Encapsulation
Options:
- Only A
- Only B
- A and B
- C and D
Correct answer: 3
A and B
The A and B are correct statements about inheritance in C#.NET.
3) A class whose features are inherited by other class is known as?
- Superclass
- Subclass
- Abstract class
- Concrete class
Options:
- Superclass
- Subclass
- Abstract class
- Concrete class
Correct answer: 1
Superclass
A class whose features are inherited by another class is known as a superclass.
4) A class that inherits features of another class is known as?
- Objects are created with a default name, we cannot assign a name to the objects.
- Small size objects are created in the heap segment.
- Class is a reference type.
- We can create user define classes to implement the functionality.
Options:
- Superclass
- Derived class
- Parent class
- Base class
Correct answer: 2
Derived class
A class that inherits features of another class is known as derived class.
5) In the context of inheritance, a superclass is also known as?
- Base class
- Parent class
- Child class
- Derived class
Options:
- Only A
- Only B
- Only C
- A and B
Correct answer: 4
A and B
In C#.Net, in the context of inheritance, a superclass is also known as Base class and Parent class.