#include <person.h>
Inheritance diagram for Person:
Public Member Functions | |
Person () | |
Person (string name, string ssn) | |
void | setName (string name) |
void | setSSN (string ssn) |
string | getName () |
string | getSSN () |
virtual void | print (ostream &out=cout) |
virtual void | read (ifstream &fin) |
virtual | ~Person () |
Protected Attributes | |
string | name |
string | ssn |
|
Default constructor. |
|
Explicit class constructor initializing a person object using the arguments name and ssn (social security number).
|
|
Destructor. Does nothing but is recommended for classes with virtual methods. |
|
Returns this person's name
|
|
Returns this person's social security number (ssn)
|
|
Prints this person's name and ssn to the ostream out, which defaults to cout.
|
|
Reads this person's name and ssn (social security number) from the ifstream argument, storing them in the respective data members.
|
|
Sets this person's name
|
|
Sets this person's ssn (social security number)
|