0

Instance of a class

help some guy on discord.py discord server tells me that im not using a instance which i dont know what its.... can Anybody tell me what is it?

15th Jun 2020, 2:46 AM
CutieRei
CutieRei - avatar
3 ответов
+ 2
Classes are templates from which we create instances. A class is a type, and an instance is an object. If I understand good what you said, you were using classes like that : class A: def func(self): pass A.func(...) Instead of a = A() # create an instance of A a.func() If you don't see the difference between classes and instances, I advise you to read the OOP chapter again.
15th Jun 2020, 6:39 AM
Théophile
Théophile - avatar
+ 1
How can we help you with so few Infos?
15th Jun 2020, 6:04 AM
Théophile
Théophile - avatar
0
Théophile what does it mean by "Your using the Class not the Instance"
15th Jun 2020, 6:15 AM
CutieRei
CutieRei - avatar