Question
Easy

In Python instance methods use _ as first default parameter.

1
primary
2
secondary
3
self
4
selfie
Question Details
Time to Solve: 12
Exam: HTET
Level/Paper: Level 3
Chapter: Object-Oriented Programming (C++)
Topic: OOP Concepts
Correct Answer
Option C
Explanation

The correct option is (3): In Python's object-oriented programming, an instance method is a function defined inside a class that is intended to operate on an object, or instance, of that class. To do this, the method must have a way to refer back to the specific object upon which it was called. Python enforces this by automatically passing a reference to the instance as the very first argument to…Read More