SilverhandX

student.h

Feb 15th, 2016
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.41 KB | None | 0 0
  1. #ifndef STUDENT_H
  2. #define STUDENT_H
  3. #include <string>
  4. #include "online.h"
  5. using namespace std;
  6.  
  7. class Student : public Online
  8. {
  9. private:
  10.     int studentID;
  11.     bool status;
  12.  
  13. public:
  14.     Student()
  15.     { studentID = 0;
  16.     status = false; }
  17.  
  18.     void setID(int id)
  19.     { studentID = id; }
  20.  
  21.     void setStatus(bool s)
  22.     { status = s; }
  23.  
  24.     int getID()
  25.     { return studentID; }
  26.  
  27.     bool getStatus()
  28.     { return status; }
  29. };
  30. #endif
Add Comment
Please, Sign In to add comment