From the course: Learning C++

Unlock this course with a free trial

Join today to access over 25,600 courses taught by industry experts.

Challenge: Create some classes

Challenge: Create some classes - C++ Tutorial

From the course: Learning C++

Challenge: Create some classes

(bright curious music) - [Instructor] It's time to start shaping our student record system. To this end, your task is to create three classes, student, course, and grade. With these classes, we'll be able to model students taking courses and getting grades. The student class must have two members, an integer for the student's ID and a string for the name. The course class must have an integer for the course ID, a string for the name and an eight bit integer for the credits. And the grade class must have an integer for the student ID, an integer for the course ID, and a chart for the grade as an ASCII character. We'll only use uppercase A, B, C, D, and F for the grades, no plus or minus. For these classes, your task is to write the constructors and gather function implementations. I have provided the class definitions in records.h. You'll have to write the function implementations in records.cpp. And you don't have to…

Contents