Mid OOP

How would you design a shape hierarchy using OOP?

  • Base abstract class Shape with Draw() method.
  • Derived classes like Circle, Rectangle override Draw().
  • Supports polymorphic behavior.

More from C# Programming Tutorial

All questions for this course