Advertisements
Advertisements
Question
A method is contained by ______.
Options
an object
a class
a data
a value
MCQ
Fill in the Blanks
Advertisements
Solution
A method is contained by a class.
Explanation:
A method is defined inside a class. It specifies the actions or behaviour that the objects of the class can perform.
shaalaa.com
Is there an error in this question or solution?
Chapter 3: User-Defined Methods - Exercises [Page 90]
