CompTIA ITF+ FC0-U61 Practice Question
Which of the following BEST describes the purpose of properties in object-oriented programming?
They are placeholders in code that can be assigned different values or objects but are not directly associated with an object's data encapsulation.
They are members of an object that store data and can be accessed or modified with specific methods, ensuring encapsulation of data.
They structure an object in a way that allows for repetitive execution of code blocks within the object.
They are functions within an object that define its behavior and actions, interacting with the object's data.