C# Inheritance Aptitude Questions and Answers | Set 5

C# Inheritance Aptitude Questions | Set 5: This section contains aptitude questions and answers on C# Inheritance.
Submitted by Nidhi, on April 14, 2020

1) Which keyword is used to call a superclass constructor from child class?
  1. super
  2. top
  3. const
  4. base

2) Which keyword is used to create an abstract class in C#.NET?
  1. sealed
  2. abstract
  3. no keyword required
  4. absolute

3) Which keyword is used in superclass for method overriding?
  1. override
  2. virtual
  3. sealed
  4. overload

4) Which keyword is used in child class for method overriding?
  1. override
  2. virtual
  3. sealed
  4. overload

5) Can we call the base class destructor explicitly?
  1. Yes
  2. No





Comments and Discussions!

Load comments ↻





Copyright © 2024 www.includehelp.com. All rights reserved.