While using encapsulation, which among the following is possible?
(a) Code modification can be additional overhead
(b) Data member’s data type can be changed without changing any other code
(c) Data member’s type can’t be changed, or whole code have to be changed
(d) Member functions can be used to change the data type of data members
This question was addressed to me during an interview.
My question is based upon Encapsulation in section OOPs Concept & Features of Object Oriented Programming