#includeThis code example uses the standard C++ library.using namespace std; class Object { public: bool hasInvolvedQuest; }; // Create a sword object Object sword; sword.hasInvolvedQuest = true; // Create a letter object Object letter; letter.hasInvolvedQuest = true; // Check if the sword is involved in a quest if (sword.hasInvolvedQuest) { cout << "You need to find the sword before fighting the boss!" << endl; } // Check if the letter starts a quest if (letter.hasInvolvedQuest) { cout << "You have found a secret message. It might be the beginning of an adventure!" << endl; }