Can we specify a function as protected? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Can we specify a function as protected?

In c++ there are three access specifiers i.e. "public", "private", and "protected" for a class member.

13th Sep 2020, 7:14 AM
Bijesh Kumar
Bijesh Kumar - avatar
1 Answer
+ 1
You can do it by defining it under protected
13th Sep 2020, 7:47 AM
你知道規則,我也是
你知道規則,我也是 - avatar