// Wyo C++ Ch. 12 Demo Program #6

#include <iostream>
#include "M:\C++ Programming\AP classes\apstring.h"

class Student
{
public:
	apstring name;
	int gradeLevel;
	void AssignGrade(char);
	void PrintGrade();

private:
	char grade;
};

int main()
{
	Student teachersPet;
	Student classHacker;

	teachersPet.AssignGrade('A');
	teachersPet.PrintGrade();

	return 0;
}

void Student::AssignGrade(char incomingGrade)
{
	grade = incomingGrade;
}

void Student::PrintGrade()
{
	cout << grade << endl;
}