Solved

Modify the Following Class Definition So That It Uses the #Ifndef

Question 39

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:

verifed

Verified

#ifndef SALESPERSON_CPP
#define SALESPE...

View Answer

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions