149k views
5 votes
A(n) ____ is a predefined procedure that you can call (or invoke) when needed.

a. Method
b. Keyword
c. Event
d. Class

User Junsik
by
5.0k points

1 Answer

4 votes

A method is a predefined procedure that you can call (or invoke) when needed. Correct answer: A

Another word for method is member function. A method belongs to classes or objects and usually expresses the verbs of the objects/class. Example: methods open and close for an object of type Window. These methods do corresponding operations to the object they belong.

User HforHisham
by
5.8k points