Save () function

Hi there, I have received a piece of code I intend to use in a library but can't understand the following save() function.

Class Person
{
private:
char FirstName [40];
char Surname [40];
Int Age;
public:
void Save (ostream & output);
};
void Person::Save (ostream & output)
{
// Functions are in here.
}

If someone could explain what the 2 lines with save do and how, it would be much appreciated.

Thanks.
The first "Save" line declares the save function. That means it tells the compiler how to call the function. The second one defines it. That means it actually creates the function and its code.
Topic archived. No new replies allowed.