In Python instance methods use ........... as first default parameter.
इंस्टेंस मैथड्स प्रथम डिफॉल्ट पैरामीटर के रूप में ------------- का उपयोग करते हैं।
Pick an option to check yourself, or open the answer below.
Show answer & explanation
Correct answer: C. self
Explanation
Instance methods receive the object itself as the first parameter, named self by convention.
इंस्टेंस मेथड का पहला पैरामीटर स्वयं ऑब्जेक्ट होता है, जिसे परंपरा से self कहते हैं।
More Programming Concepts & Python questions
- Step by step description of how to arrive at a solution to a given problem is known as :
- This module converts the python source file into .pyc file :
- The software containing an interpreter that converts the byte code into machine code where the python program runs is called as :
- Which of the following constructor related concept is non-relevant in C++ ?
- In C++, which of the following is not a derived container under STL ?
- In C++, an overloaded unary operator defined as a member function requires how many variables to be passed as function argument ?