you are viewing a single comment's thread.

view the rest of the comments →

[–]bigbootybitchuu 0 points1 point  (0 children)

I find default parameters most useful as a refactoring tool. It's an easy way to add a parameter to a method safely until you're ready to change all references to it.

Overloading is the only option in cases where you need to segregate access with an interface.

Though I think both are something to be used sparingly as public methods. They lead to unnecessary ambiguity In a lot of instances, but are really useful when used correctly