+ 4

What is meant by instance attribute in python?

plzz explaine in simple words...

16th Jul 2018, 12:57 PM
Nitin Gutte
Nitin Gutte - avatar
2 Respostas
+ 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.
16th Jul 2018, 5:02 PM
Maninder $ingh
Maninder $ingh - avatar
+ 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
16th Jul 2018, 2:26 PM
Alexander Sokolov
Alexander Sokolov - avatar