What is the better approach for methods with optional parameters:

1. **Declare constant and use it as default parameter:**

![enter image description here](https://i.stack.imgur.com/MX2ld.png)

2. **Or declare default parameters in method:**

![enter image description here](https://i.stack.imgur.com/1gBEJ.png)

I'm sorry for images instead of code but WYSIWYG editor is buggy.