Methods are used to represent:
-
actions.
-
classes.
-
data.
-
events.
-
instances.
Reveal answer
Fill a bubble to check yourself
A
Correct answer
Explanation
Methods represent actions or behaviors that an object can perform - they define the operations or functionality of the object. Classes are blueprints for objects, data is represented by properties/fields, events are external triggers, and instances are individual objects. The key distinction is that methods are active behaviors, not passive definitions.
AI explanation
Methods are the functions defined on a class/object that perform operations or behaviors — i.e., actions the object can carry out. Data is instead held in properties/fields, and classes are the blueprints that define both methods and properties, not the actions themselves.