0

why isn't text inside init printing?

class example(): def __init__(): print("Class: Example") son=example

3rd Mar 2021, 6:00 AM
MUDIT JAIN
MUDIT JAIN - avatar
3 ответов
+ 2
son = example()
3rd Mar 2021, 6:05 AM
visph
visph - avatar
0
you should create the instance of the class . See visph code on how to create instance
3rd Mar 2021, 6:23 AM
-1-
0
Okay thanks everybody
3rd Mar 2021, 4:47 PM
MUDIT JAIN
MUDIT JAIN - avatar