A programmer creates an object to retrieve customer names from a database. Which of the following best describes the object that is retrieving the names?
In object-oriented programming, methods are functions or procedures associated with an object that perform actions such as retrieving data:
“Methods are actions that an object can perform. They typically manipulate or retrieve data stored within the object.”
Variables store data, attributes define properties, and loops control repetition but do not directly handle data retrieval within objects.
[Reference:CompTIA ITF+ FC0-U71 Official Study Guide, Chapter 8 – Programming Concepts., ]
Contribute your Thoughts:
Chosen Answer:
This is a voting comment (?). You can switch to a simple comment. It is better to Upvote an existing comment if you don't have anything to add.
Submit