No, you cannot use private variables with inheritance; you can only use public and protected variables through the inheritance method. A protected member can be accessed only within the class or any derived classes that inherit from that class. Is creating the variable store as a protected member instead of as a private member acceptable?