C# abstract class- programs for practice

(Last Updated On: May 6, 2017)

Q) What is output of the following program?


  1. Print method
  2. Compiler error
View Answer
Answer: B
We cannot create an instance of the abstract class in c# programming.

Q)What is issue in the below C# class?

View Answer
Answer: A method cannot have a body which is marked as abstract. Below is the correct declaration. The class derived from it will implement the engine method which is abstract.