Why is encapsulation considered crucial in object-oriented programming?Single choice

A

It groups data and methods within objects, improving organization and reducing the risk of interference.

B

It ensures that all data within a program is accessible from any part of the program.

C

It primarily functions to encrypt sensitive information within objects.

D

It decreases the memory usage of programs by sharing data between objects.

Log in for full answers

We've collected over 50,000 authentic original questions and detailed explanations from around the globe. Log in now and get instant access to the answers!

More Practical Tools for Students Powered by AI Study Helper

Join us and instantly unlock extensive past papers & exclusive solutions to get a head start on your studies!