30. Protected Access Modifiers
A protected member variable or function is very similar to a private member but it provided one additional benefit that they can be accessed in child classes which are called derived classes. You will learn derived classes and inheritance in next chapter. For now, you can check following example where I have derived one child class SmallBox from a… Read More »