In Python, what is 'self' in a class method? - Study24x7
Social learning Network
study24x7

Default error msg

Login

New to Study24x7 ? Join Now
Already have an account? Login
08 Apr 2024 12:15 PM study24x7 study24x7

In Python, what is 'self' in a class method?

A

A variable that holds the class name

B

A reference to the class itself

C

A reference to the instance that calls the method

D

A placeholder for future arguments

study24x7
Write a comment
Related Questions
500+   more Questions to answer
Most Related Articles