Home » Aptitude Questions and Answers » C# Aptitude Questions and Answers

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

Ad: Are you a blogger? Join our Blogging forum.





Languages: » C » C++ » C++ STL » Java » Data Structure » C#.Net » Android » Kotlin » SQL
Web Technologies: » PHP » Python » JavaScript » CSS » Ajax » Node.js » Web programming/HTML
Solved programs: » C » C++ » DS » Java » C#
Aptitude que. & ans.: » C » C++ » Java » DBMS
Interview que. & ans.: » C » Embedded C » Java » SEO » HR
CS Subjects: » CS Basics » O.S. » Networks » DBMS » Embedded Systems » Cloud Computing
» Machine learning » CS Organizations » Linux » DOS
More: » Articles » Puzzles » News/Updates


© https://www.includehelp.com some rights reserved.