nerdexam
Microsoft

98-361 · Question #266

Which three items are benefits of encapsulation? (Choose three.)

The correct answer is A. restricted access B. flexibility C. maintainability. Encapsulation is the packing of data and functions into a single component. In programming languages, encapsulation is used to refer to one of two related but distinct notions, and sometimes to the combination thereof: A language mechanism for restricting access to some of the…

Understanding Object-Oriented Programming

Question

Which three items are benefits of encapsulation? (Choose three.)

Options

  • Arestricted access
  • Bflexibility
  • Cmaintainability
  • Dperformance
  • Einheritance

How the community answered

(59 responses)
  • A
    71% (42)
  • D
    20% (12)
  • E
    8% (5)

Explanation

Encapsulation is the packing of data and functions into a single component. In programming languages, encapsulation is used to refer to one of two related but distinct notions, and sometimes to the combination thereof: * A language mechanism for restricting access to some of the object's components. * A language construct that facilitates the bundling of data with the methods (or other functions) operating on that data.

Topics

#encapsulation#access restriction#maintainability#OOP principles

Community Discussion

No community discussion yet for this question.

Full 98-361 Practice