Answers:
ans:
Answer: Classes in the same namespace.
the member is only accessible to that class that contains it and the class that derives it.
 Posted by: sunshine
Contact sunshine
It is available inside all subclasses and classes derived from it.
 Posted by: swaminathan
Contact swaminathan
derived classes of the same namespace
 Posted by: neha
Contact neha
protected variables can be inherited only within the same namespce.(any class in this name space can inherit protected variables).
 Posted by: bharat
Contact bharat
If you have the better answer, then send it to us. We will display your answer after the approval.
   
|