हिंदी

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

Advertisements
Advertisements

प्रश्न

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

विकल्प

  • local

  • formal

  • actual

  • argument

MCQ
रिक्त स्थान भरें
Advertisements

उत्तर

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
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 6: Encapsulation - Exercises [पृष्ठ १४८]

APPEARS IN

रुपा पंडित Computer Applications [English] Class 10 ICSE
अध्याय 6 Encapsulation
Exercises | Q 1. (vii) | पृष्ठ १४८
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×