adplus-dvertising
frame-decoration

Question

Which among the following best describes encapsulation?

a.

It is a way of combining various data members into a single unit

b.

It is a way of combining various member functions into a single unit

c.

It is a way of combining various data members and member functions into a single unit which can operate on any data

d.

It is a way of combining various data members and member functions that operate on those data members into a single unit

Answer: (d).It is a way of combining various data members and member functions that operate on those data members into a single unit

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Which among the following best describes encapsulation?

Similar Questions

Discover Related MCQs

Q. If data members are private, what can we do to access them from the class object?

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

Q. Which feature can be implemented using encapsulation?

Q. Find which of the following uses encapsulation?

Q. Encapsulation helps in writing ___________ classes in java

Q. Which among the following should be encapsulated?

Q. How can Encapsulation be achieved?

Q. Which among the following violates the principle of encapsulation almost always?

Q. Which among the following would destroy the encapsulation mechanism if it was allowed in programming?

Q. Which among the following can be a concept against encapsulation rules?

Q. Encapsulation is the way to add functions in a user defined structure.

Q. Using encapsulation data security is ___________

Q. Which among the following best defines abstraction?

Q. Hiding the implementation complexity can:

Q. Class is _________ abstraction

Q. Object is ________ abstraction

Q. Abstraction gives higher degree of ________

Q. Abstraction can apply to:

Q. Which among the following can be viewed as combination of abstraction of data and code.

Q. Abstraction principle includes___________