adplus-dvertising
frame-decoration

Question

If two classes combine some private data members and provides public member functions to access and manipulate those data members. Where is abstraction used?

a.

Using private access specifier for data members

b.

Using class concept with both data members and member functions

c.

Using public member functions to access and manipulate the data members

d.

Data is not sufficient to decide what is being used

Answer: (c).Using public member functions to access and manipulate the data members

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. If two classes combine some private data members and provides public member functions to access and manipulate those data members. Where is abstraction used?