declaration of function prototype in other local specifier | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

declaration of function prototype in other local specifier

what will happen if a function prototype is being declared in private or protected does it make any difference ? if yes then what.

27th Jan 2017, 8:36 PM
Vikas Tiwari
Vikas Tiwari - avatar
1 Answer
+ 1
Yes, private is only for the class it self. Protected can be used by classes that inherit from the class with the protected function or data.
27th Jan 2017, 9:58 PM
Mattias Eriksson
Mattias Eriksson - avatar