हिंदी

A method is invoked through an: - Computer Applications

Advertisements
Advertisements

प्रश्न

A method is invoked through an:

विकल्प

  • Object

  • System

  • Parameter

  • None

MCQ

उत्तर

Object

Explanation:

  1. In Java, non-static methods are called using an object from the class to which they belong.
  2. An object is an instance of a class that provides access to the class's methods and variables.
  3. Static methods are called with the class name, whereas most instance methods need object instantiation.
shaalaa.com
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 5: User - Defined Methods - EXERCISES [पृष्ठ ३३५]

APPEARS IN

अविचल Computer Applications [English] Class 10 ICSE
अध्याय 5 User - Defined Methods
EXERCISES | Q I. 9. | पृष्ठ ३३५
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×