Protected

Why not use protected&

protected is related to access level in a class. when a method or variable of a class is protected, it can be accessed by classes that inherit from the class.

see here: protected (C++) | Microsoft Docs

1 Like

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.

Privacy & Terms