1) Which keyword is used to call a superclass constructor from child class?
- super
- top
- const
- base
Correct answer: 4
base
In C#.NET, base keyword is used to call a base class constructor from a derived class.
2) Which keyword is used to create an abstract class in C#.NET?
- sealed
- abstract
- no keyword required
- absolute
Correct answer: 2
abstract
In C#.NET, we need to use an abstract keyword to create an abstract class.
3) Which keyword is used in superclass for method overriding?
- override
- virtual
- sealed
- overload
Correct answer: 2
virtual
The virtual keyword is used in superclass for method overriding.
4) Which keyword is used in child class for method overriding?
- override
- virtual
- sealed
- overload
Correct answer: 1
override
The override keyword is used in child class for method overriding.
5) Can we call the base class destructor explicitly?
- Yes
- No
Correct answer: 2
No
No, we cannot base class destructor explicitly, it called automatically in reverse order.