Science, asked by saitirkhunde67, 1 month ago

(after $7.12] Why is it safe to declare named constants public?​

Answers

Answered by Anonymous
1

You shouldn't always make a constant public or always make it private. To minimize dependencies between classes, you should by default make things private, and only make them protected or public when there is a reason to do so.

Similar questions