Can we specify a function as protected? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 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 Resposta
+ 1
You can do it by defining it under protected
13th Sep 2020, 7:47 AM
ä½ ēŸ„é“č¦å‰‡ļ¼Œęˆ‘也ę˜Æ
ä½ ēŸ„é“č¦å‰‡ļ¼Œęˆ‘也ę˜Æ - avatar