What is self in python constructor?



What is self in python constructor?..

Answer / Sudhanshu Shekhar Singh

In Python's object-oriented programming (OOP), 'self' refers to the instance of the class. It is used to access variables and methods that belong to the current instance.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Python Interview Questions

Is multiple inheritance possible in Python?

3 Answers  


Can I use Python instead of PHP?

1 Answers  


What are some python projects for beginners?

1 Answers  


What is a static method python?

1 Answers  


What is the difference between abs () and fabs ()?

1 Answers  


How do I check if python is installed?

1 Answers  


If you are ever stuck in an infinite loop, how will you break out of it?

1 Answers  


Tell us what is python?

1 Answers  


As python is more suitable for the server-side application, it is very important to have threading implemented in your server code. How can you achieve that in python?

1 Answers  


What is called loop?

1 Answers  


What are the different file-processing modes with python?

1 Answers  


Finally, tell us about bitwise operators in python?

1 Answers  


Categories