in Object Oriented Programming retagged by
7,034 views
2 votes
2 votes

When the inheritance is private, the private methods in base class are _____ in the derived class (in C++)

  1. inaccessible 
  2. accessible
  3. protected
  4. public
in Object Oriented Programming retagged by
7.0k views

1 Answer

2 votes
2 votes
ans is A inaccessible in the derived class

only public or protected  members are inherited

2 Comments

Sir, in inheritance when access modifier is private all the member function of the base class (private, protected & public) become private in the derived class. Isn't answer became Accessible ?

0
0
no private members can not be inherited
1
1
Answer:

Related questions

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true