Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2
A class is like a 'construction plan' for a certain sort of item. It is used to create several instances of this type later. They'll all be of the same type, but each will be a separate entity. Like if you and I have the same smartphone, it's still two separate phones. self means the separate instance that is going to be created.
15th Jan 2020, 10:56 AM
HonFu
HonFu - avatar