Essay
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
#ifndef SALESPERSON_CPP
#define SALESPE...View Answer
Unlock this answer now
Get Access to more Verified Answers free of charge
Correct Answer:
Verified
#define SALESPE...
View Answer
Unlock this answer now
Get Access to more Verified Answers free of charge
Q34: Match each term with the correct statement
Q35: Why should you avoid using digits in
Q36: Why must a constructor have the same
Q37: _ cohesion occurs when all of the
Q38: sortAscending() is a typical example of a(n)
Q40: Match each term with the correct statement
Q41: An initialization list is the part of
Q42: A _ is a collection of useful
Q43: The one's complement operator (_) is the
Q44: If you want to create an array