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 - 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
-
-
-
-
-
(Locked)
Structures2m 29s
-
(Locked)
Classes6m 47s
-
(Locked)
Using classes2m 1s
-
(Locked)
Header and implementation files4m 12s
-
(Locked)
Using several source files6m
-
(Locked)
Pointers5m 17s
-
(Locked)
Using objects with pointers4m 21s
-
(Locked)
References4m 25s
-
(Locked)
Vectors3m 35s
-
(Locked)
Using objects with vectors2m 45s
-
(Locked)
Challenge: Create some classes1m 32s
-
(Locked)
Solution: Create some classes1m 48s
-
(Locked)
-
-
-
-