yes, if the derived class is inheriting from base class with private access level
class derived : private base
but it's not mean that we can inherit privete member of base class....... if we are inheriting base class in privete mode that means base class function will use like privete member of derive class and in any condition we can not inherit private function of base class........
Hi Friends, Actualy there r three access mode in C++,(i)public (ii)protected (iii)private.public can be accessed from anywhere & protected can be access only by derived class;But if we made a variable private it can be accessed by scope resiolution operator(::)from outside the class.if this derived class is inheriting the private member from base class then it is possible to inherit the private member in derived class.
Yes,we can inherit the private member into derived class. 1st we inherit base class into derived class in public mode,now public member of base class too public member of derived class,than we can call the private member by public function of derived class.