Interviews - C# Corner

Dinesh Beniwal
What is self in Python?
By Dinesh Beniwal in Python onJun 20 2019
  • Rohit Gupta
    Jul, 2019 10

    self is used to pass the reference to the current class. self solves the same purpose that is achieved by "this" in javaunlike "this", it is a compulsion to pass self in python

    • 1
  • agyekum Essien
    Jul, 2019 7

    test

    • 1
  • Pravesh Dubey
    Jun, 2019 21

    Self represents an instance of the class, By using "Self" we can access the attributes and method of the class in a python.

    • 1

Most Popular Companies

Most Popular Job Functions

MOST LIKED QUESTIONS