Hello Is there a way to access a variable inherited from class1 but that it will not be visible to other non-inherited classes something like this: https://www.w3schools.com/cpp/cpp_inheritance_access.asp I tried to think maybe with: STATIC PRIVATE But it's not working Many thanks to everyone