classes

Classes - #include #include #include using namespace std class CClock cfw public CClock fTime(0 cfw Default constructor

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
#include <fstream> #include <string> #include <queue> using namespace std; class CClock { public: CClock() : fTime (0) {} // Default constructor virtual ~CClock() {} // Virtual destructor CClock(const CClock&) {} // Copy constructor CClock& operator=(const CClock clock) { if (this != &clock) {} return *this;} // Overloaded assignment operator inline long GetTime () {return fTime;} inline void Advance () {fTime++;} protected: long fTime; }; class CPerson { public: CPerson() : fName ("") {} // Default constructor virtual ~CPerson() {} // Virtual destructor CPerson(const CPerson&) {} // Copy constructor CPerson& operator=(const CPerson person) { if (this != &person) {} return *this;} // Overloaded assignment operator inline void GetName (string& name) {name = fName;} protected: string fName; }; class CTeller; class CCustomer : public CPerson { public: CCustomer() {} // Default constructor // Argument constructor CCustomer (string name, long arrivalTime, string transaction, CClock *clock, queue <CCustomer*> *line, CTeller *teller)
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 01/17/2012 for the course CSC 1254 taught by Professor Blanks,l during the Fall '08 term at LSU.

Page1 / 2

Classes - #include #include #include using namespace std class CClock cfw public CClock fTime(0 cfw Default constructor

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online