Dinesh Beniwal
What is self in Python?
By Dinesh Beniwal in Python on Jun 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


    • 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
  • Md Sarfaraj
    Jul, 2019 24

    Self is like this keyword in php

    • 0

Most Popular Job Functions