Can we specify a function as protected? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 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 Réponse
+ 1
You can do it by defining it under protected
13th Sep 2020, 7:47 AM
你知道規則,我也是
你知道規則,我也是 - avatar