English

A method is invoked through an: - Computer Applications

Advertisements
Advertisements

Question

A method is invoked through an:

Options

  • Object

  • System

  • Parameter

  • None

MCQ

Solution

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
  Is there an error in this question or solution?
Chapter 5: User - Defined Methods - EXERCISES [Page 335]

APPEARS IN

Avichal Computer Applications [English] Class 10 ICSE
Chapter 5 User - Defined Methods
EXERCISES | Q I. 9. | Page 335
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×