I want to know if is there any way to make an object of a class, but don't call its __init__
method :
Look at the below code :
>>> class test():
def __init__(self):
print("an object created of this class")
>>> a=test()
an object created of this class
>>>
I want a way to create an object of class test()
, but don't print an object created of this class
.
Is there any way?
Update:
Assume that I implemented this class already and Instantiated 20
objects of it and I was need to its __init__
method for all of them. And now I want to instantiate some new objects, but I don't want to call its __init__
method any more. Is there any way?