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?
3 Answers
+ 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.
+ 1
How can we help you with so few Infos?
0
Théophile what does it mean by "Your using the Class not the Instance"