Sunday, October 19, 2008

Questions about this code snippet

Well, I have been learning my c++ from a book. I'm quite confused with some parts of code, so a bit of help would be appreciated. Here's the code:
class AirlineTicket
class AirlineTicket

int calculatePriceInDollars();

string getPassengerName();
void setPassengerName(string inName);
int getNumberOfMiles();
void setNumberOfMiles(int inMiles);
bool getHasEliteSuperRewardsStatus();
void setHasEliteSuperRewardsStatus(bool inStatus);

string mPassengerName;
int mNumberOfMiles;
bool fHasEliteSuperRewardsStatus;

No comments: