Final answer:
The correct option is that programmers do not need to know how an object of a class stores its data or how its methods are implemented due to the principle of encapsulation in object-oriented programming. Therefore, the correct answer is option C. When programmers srock vitth an object of a class, they do not need to know how the object stores its data or how its methods are implemented
Step-by-step explanation:
The correct statement about working with objects of a class in programming is c. When programmers work with an object of a class, they do not need to know how the object stores its data or how its methods are implemented.
This concept is known as encapsulation, which is a fundamental principle of object-oriented programming.
Encapsulation allows an object to hide its internal state and requires all interaction to be performed through an object's methods, providing a clear interface and protecting the object's integrity by preventing external actors from setting the internal state into an invalid or inconsistent state.
The correct statement about classes is a. When programmers work with an object of a class, they must understand how the object stores its data and how its methods are implemented.
When working with an object of a class, programmers need to know both the data structure and the implementation details of the methods.
Understanding how the data is stored helps programmers manipulate and access the object's attributes, while understanding how the methods are implemented enables them to use the object's functionality correctly.
Therefore, the correct answer is option C. When programmers srock vitth an object of a class, they do not need to know how the object stores its data or how its methods are implemented