A School Directory Application
Package to illustrate classes, subclasses, polymorphism,cout<<<overloading, and virtual functions
Student.h
Go to the documentation of this file.
1 
28 #ifndef STUDENT_H
29 #define STUDENT_H
30 
31 #include "Entry.h"
32 
33 
34 class Student : public Entry {
35  public:
46  Student (std::string first, std::string last, std::string addr, int yr, std::string box) ;
47 
59  std::ostream& print (std::ostream &os) const ;
60 
61 // Students have two special fields
62  private:
63  int year;
64  std::string POBox;
65 
66 };
67 
68 #endif
Definition: Entry.h:26
Definition: Student.h:34
Student(std::string first, std::string last, std::string addr, int yr, std::string box)
Definition: Student.cpp:4
std::ostream & print(std::ostream &os) const
Definition: Student.cpp:22