Bird
Raised Fist0

What is true about an abstract class in C#?

easy🧠 Conceptual Q11 of Q15
C Sharp (C#) - Polymorphism and Abstract Classes
What is true about an abstract class in C#?
AIt can be instantiated like any other class.
BIt must have only abstract methods.
CIt cannot be instantiated directly.
DIt cannot have any methods.
Step-by-Step Solution
Solution:
  1. Step 1: Understand abstract class instantiation rules

    An abstract class is designed as a base template and cannot be created as an object directly.
  2. Step 2: Check other options for correctness

    Abstract classes can have both abstract and non-abstract methods, so options A, B, and D are incorrect.
  3. Final Answer:

    It cannot be instantiated directly. -> Option C
  4. Quick Check:

    Abstract class = no direct instantiation [OK]
Quick Trick: Remember: abstract classes are blueprints, not objects. [OK]
Common Mistakes:
MISTAKES
  • Thinking abstract classes can be instantiated.
  • Believing abstract classes must have only abstract methods.
  • Confusing abstract classes with interfaces.

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More C Sharp (C#) Quizzes