+ 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.
1 Antwort
+ 1
You can do it by defining it under protected
In c++ there are three access specifiers i.e. "public", "private", and "protected" for a class member.