getters setters ternary operators encapsulation