English

Variables which are defined in a method are called ______ method.

Advertisements
Advertisements

Question

Variables which are defined in a method are called ______ method.

Options

  • local

  • formal

  • actual

  • argument

MCQ
Fill in the Blanks
Advertisements

Solution

Variables which are defined in a method are called local method.

Explanation:

Variables declared inside a method are known as local variables. They are created when the method begins execution and are completely destroyed as soon as the method exits, meaning they cannot be accessed from anywhere else in the class.
shaalaa.com
  Is there an error in this question or solution?
Chapter 6: Encapsulation - Exercises [Page 148]

APPEARS IN

Rupa Pandit Computer Applications [English] Class 10 ICSE
Chapter 6 Encapsulation
Exercises | Q 1. (vii) | Page 148
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×