English

A method is contained by ______.

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]

APPEARS IN

Rupa Pandit Computer Applications [English] Class 10 ICSE
Chapter 3 User-Defined Methods
Exercises | Q 1. (vi) | Page 90
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×