1. no, the variabl if private, will be a member of the class. it will b visible but u cannot use it in derived class!!!! 2. s it can be done, provided the variable is public to the base class also. !!!!!!!!!!!!!!!!!
Varsha
be cool,
tomorrow is what we make it today,
so if u can dream it , u can make it .
life is an ice cream ,eat it before it melts away!!!!!!!!!
1. the base class variable is in private section ....... we cannot use it in derived class since private members of a class are not inherited......
if the base class variable is in protected or public section we can use it in derived class........
2. it depends on the visibility mode......if the visibility mode is such that the base class variable is in the public setion of the derived class then the derived class object can use that variable.....