Search code examples
c#oopdefault

Are default parameters bad practice in OOP?


Do default parameters for methods violate Encapsulation?

What was the rationale behind not providing default parameters in C#?


Solution

  • I would take this as the "official" answer from Microsoft. However, default (and named) parameters will most definitely be available in C# 4.0.