+ 2
Can a class statements be run without creating its object in Python?
For example:- Class book: Print("i am in a book class") And now if i run this,it will produce an output as: I am in a book class. Why is this happening? I didn't create an object and neither i called it.Why it is so ?please explain me. Thank you in advance!!
1 Réponse