edited by
590 views
0 votes
0 votes

If a data-item is declared as a protected access specifier then it can be accessed : 

  1. Anywhere in the program
  2. By the base and derived classes
  3. Only by base class
  4. Only by derived class
edited by

1 Answer

0 votes
0 votes

B. By the base and derived classes ...

 

A base class is an existing class from which the other classes are derived and inherit the methods and properties..…

A derived class is a class that is constructed from a base class or an existing class...

Related questions

0 votes
0 votes
1 answer
2
0 votes
0 votes
1 answer
3
go_editor asked Mar 26, 2020
583 views
Consider the relation on the set of non-negative integers defined by $x \equiv y$ if and only if:$x$ $\text{mod}$ $3=3$ $\text{mod}$ $y$$3$ $\text{mod}$ $x \equiv 3$ $\te...
0 votes
0 votes
2 answers
4
go_editor asked Mar 26, 2020
1,533 views
Minimum number of individual shoes to be picked up from a dark room ( containing $10$ pair of shoes) if we have to get atleast one proper pair :$2$$20$$11$None of these