Mid OOP

Why is composition preferred over inheritance in some cases?

  • Provides flexibility, reduces tight coupling, and avoids deep hierarchies.

More from C# Programming Tutorial

All questions for this course