+ 4
What is meant by instance attribute in python?
plzz explaine in simple words...
2 Antworten
+ 4
Instance attributes means which initiate the class.without instance attributes class is just like a empty box.Take a simple example.
let think we have class in real world in a school.This class is for science students and programmers.science students and programmers are the instance attributes of the class because without student class is nothing.without students class is empty.For actions and study students are required.instance attributes is the main part of the class.remember that without students class is exist.
+ 3
Hello, Nitin Gutte !
instance: this is single object representing a specific class.
Good luck with programming on SoloLearn!
https://www.sololearn.com/Course/JUMP_LINK__&&__Python__&&__JUMP_LINK/?ref=app