edited by
895 views
0 votes
0 votes

Which of the following is not true in C++ ?

  1. “Private” elements of a base class are not accessible by members of its derived class.

  2. “Protected” elements of base class are not accessible by members of its derived class.

  3. When base class access specified is “Public”, public elements of the base class become public members of its derived class.

  4. When base class access specified is “Public”, protected elements of a base class become protected members of its derived class.

 

edited by

1 Answer

0 votes
0 votes

Ans: B

Because, “Protected” elements of base class are accessible by members of its derived class.

Related questions

2 votes
2 votes
1 answer
2
1 votes
1 votes
2 answers
3
go_editor asked Mar 28, 2020
1,230 views
The number of edges in a complete graph with $‘n’$ vertices is equal to :$n(n-1)$$\large\frac{n(n-1)}{2}$$n^2$$2n-1$
0 votes
0 votes
1 answer
4
go_editor asked Mar 28, 2020
524 views
A context free grammar is :type $0$type $1$type $2$type $3$