C# abstract class- programs for practice

(Last Updated On: February 26, 2019)

Q) What is output of the following program?

Output:

  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.