adplus-dvertising
frame-decoration

Question

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

Answer: (b).Data member’s data type can be changed without changing any other code

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. While using encapsulation, which among the following is possible?