Folks...
 
Please dont take it in a wrong sense. But I have a point to make regarding OOP and the way it is implemented in Python.
 
 Why is it necessary to explicity use self argument in the class functions ?? I feel the language/interpreter should figure out which object has called the function? Isnt it ? (the use of 'self' keyword really confuses me. and to make matter worse the variables can be accessed from outside teh class. Isnt it a violation of the OOP principle of ENCAPSULATION)
 
Also please let me know hwo can we declare PRIVATE VARIABLES in Python...??
 
Regards,
Asrarahmed
 
P.S. : I love Python. :)-

--
To HIM you shall return.
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to