By defining data members as private, you protect the data and enable access only through the object's methods and properties. This describes the ____ feature.

A. abstraction
B. encapsulation
C. polymorphism
D. inheritance

Answer: B

Computer Science & Information Technology

You might also like to view...

Sun Microsystem's StarOffice is the most notable open-source application and a direct alternative to Microsoft Office

Indicate whether the statement is true or false

Computer Science & Information Technology

Which statement is true about classes?

A. The class declaration should be contained in a .cpp file. B. An error will occur if the function is written within the class declaration. C. The class function definitions (source code) should be placed in the .cpp file. D. Class declarations and definitions (source code) should not be separated into different files.

Computer Science & Information Technology