I think I don't understand the OOP in python, could anyone explain why
this code works?
class example:
atribute = "hello world"
print example.atribute
Why you don't have to make an object of the class to access to the
atribute?
( class example:
atribute = "hello world"
obj = example()
print obj.atribute
Thanks in advance.
______________________________________________
LLama Gratis a cualquier PC del Mundo.
Llamadas a fijos y móviles desde 1 céntimo por minuto.
http://es.voice.yahoo.com
_______________________________________________
Tutor maillist - [email protected]
http://mail.python.org/mailman/listinfo/tutor