Protected members can be accessed from within a class and derived classes, but private members can only be accessed from within the same class.