Ugly cast
C / C++ / MFC
21
Posts
7
Posters
0
Views
1
Watching
-
I dont really see the point with the protected keyword. Maybe someone inherits from the class and then it can be modified, either it is publicly modifiable or not, i dont see the point with have it "maybemodifable". /Magnus
- I don't necessarily agree with everything I say
The
protected
keyword lets you differentiate between accesses of the value by users of the class from accesses by derived classes. Ordinary users of the class may not access a member markedprotected
. A derived class, which supplements or modifies the behavior of the base class, is granted privileged access.
Software Zen:
delete this;