Hi,
anyone who is also a Java programmer will know straight away what am talking about.
anyway, as in java we have Private, Protected and of course Public attributes in a class. So as i understand in PHP we can call the methods and the attributes in a subclass from its superclass just by using:
$this->thisIsAttribute; (for attributes)
$this->thisIsFunction(); (for methods)
now lets say, i have got the db Id and password saved in some attributes in my DB class which i use for connection. what if someone extends his/her class from my DB class, and then simply echo the attributes out!
now how can i make the attributes here Private??
any ideas please...
Daarius...