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
7.7k 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
8.5k points
Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.