Junior OOP

What is the object class in C# and its relation to polymorphism?

  • object is the base class for all C# types.
  • Enables polymorphism, as any object can be referred using object type.

object obj = new Car();

More from C# Programming Tutorial

All questions for this course