although public properties are legal, they are discouraged since they violate encapsulation , all attributes should be private, and public and protected attributes should be avoided.
although public properties are legal, they are discouraged since they violate encapsulation , all attributes should be private, and public and protected attributes should be avoided.
Written by