I have never had a formal class in OOP/OOD although I understand how the protected members work. Being accessible by any instance/derived class, they are thereby less private (more accessible) than private.
Now, what I am confused on... is how to access the protected members within the class for C#. I have seen examples of developers doing it in two different ways. The first way I have seen people doing it, is by calling on the keyword
this in front of the member variable such as in this example here. The second way that I have seen people using protected member is by not calling on
this and just calling the member itself. This tutorial over at tutorials point, does not use the
Now, there's this question on StackOverflow. One of the answers states that "to qualify members hidden by similar name" does this include
Are you supposed to use the
this keyword on a protected member? I have seen it with/without.