how do I run a python class without creating an object
tutsie12 0 Newbie Poster
Recommended Answers
Jump to PostThe question doesn't seem to make musch sense. One cannot 'run' a class in Python - a class is a collection of methods and instance variables, and cannot be exectued per se.
I suppose if you are coming from a Java perspective, one could see executing the
main()
function …
All 2 Replies
Schol-R-LEA 1,446 Commie Mutant Traitor Featured Poster
vegaseat 1,735 DaniWeb's Hypocrite Team Colleague
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.