class AirlineTicket
class AirlineTicket
{
public:
AirlineTicket();
~AirlineTicket();
int calculatePriceInDollars();
string getPassengerName();
void setPassengerName(string inName);
int getNumberOfMiles();
void setNumberOfMiles(int inMiles);
bool getHasEliteSuperRewardsStatus();
void setHasEliteSuperRewardsStatus(bool inStatus);
private:
string mPassengerName;
int mNumberOfMiles;
bool fHasEliteSuperRewardsStatus;
};
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:
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment