Modify the following class definition so that it uses the #ifndef , #define and #endif directives:
class Salesperson
{
private:
int idNum;
string name;
public:
Salesperson(int, string);
void display();
};
Salesperson::Salesperson(int id, string lastName)
{
idNum = id;
name = lastName;
}
void Salesperson::display()
{
cout
Correct Answer:
Verified
#define SALESPE...
View Answer
Unlock this answer now
Get Access to more Verified Answers free of charge
Q43: Match each term with the correct statement
Q44: Why should you avoid using digits in
Q45: Match each term with the correct statement
Q46: Match each term with the correct statement
Q47: Match each term with the correct statement
Q48: Match each term with the correct statement
Q49: Match each term with the correct statement
Q50: Match each term with the correct statement
Q51: Match each term with the correct statement
Q52: What is the difference between tight coupling
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents