Question: QUESTION 11 In order to ensure encapsulation in object-oriented programming we have to declare private instance variables and set public to all set and get
QUESTION 11 In order to ensure encapsulation in object-oriented programming we have to declare private instance variables and set public to all set and get methods declare final instance variables and set private to all methods a & b define constructor with parameters
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
