Understand how access control works in the context of inheritance in C++.