A School Directory Application
Package to illustrate classes, subclasses, polymorphism,cout<<<overloading, and virtual functions
Loading...
Searching...
No Matches
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
Entry.h
Entry
Definition:
Entry.h:26
Student
Definition:
Student.h:34
Student::print
std::ostream & print(std::ostream &os) const
Definition:
Student.cpp:22
Generated by
1.9.6