Mid OOP

How does polymorphism help in loose coupling?

  • Code depends on interfaces or base classes, not concrete implementations.
  • Makes system flexible, extendable, and easier to maintain.

void StartVehicle(Vehicle v) { v.Start(); } // Works with any

derived type

More from C# Programming Tutorial

All questions for this course