Open/Closed Principle or OCP states that software entities should be open for extension, but closed for modification. Make all member variables private by default. Write getters and setters only when you need them. |
Open/Closed Principle or OCP states that software entities should be open for extension, but closed for modification. Make all member variables private by default. Write getters and setters only when you need them. |