adplus-dvertising
frame-decoration

Question

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

a.

Using access declaration for private members of base class

b.

Using access declaration for public members of base class

c.

Using access declaration for local variable of main() function

d.

Using access declaration for global variables

Answer: (a).Using access declaration for private members of base class

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 would destroy the encapsulation mechanism if it was allowed in programming?

Similar Questions

Discover Related MCQs

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___________

Q. Higher the level of abstraction, higher are the details.

Q. Encapsulation and abstraction differ as:

Q. In terms of stream and files________

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?

Q. A phone is made up of many components like motherboard, camera, sensors and etc. If the processor represents all the functioning of phone, display shows the display only, and the phone is represented as a whole. Which among the following have highest level of abstraction?

Q. Which among the following is not a level of abstraction:

Q. Using higher degree of abstraction __________