(answering to the OP)
M Kumar wrote:
Object oriented languages doesn't allow execution of  the code without
class objects,

Chapter and verse, please ?

Nothing in the (very few) "axioms" of OOP mentions "classes". You don't need classes to have an OOPL (ever heard about prototype-based languages ?). OOP is - as the name imply - about *objects*.

what is actually happening when we execute  some piece
of code,

Top-level code ? or the body of a def statement ?

is it bound to any class?

Why should it be ?

--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to