Answered step by step
Verified Expert Solution
Question
1 Approved Answer
This keeps telling me that there is an error and I can't figure out what it is #ifndefGRAD H #define GRADH /Q1b: Create Grad class
This keeps telling me that there is an error and I can't figure out what it is
#ifndefGRAD H #define GRADH /Q1b: Create Grad class (5 points) //Part 1: Create a child class of the Student class named 'Grad // include "student . h" - class grad: public student public: grad(string studentName, int studentRollNo, studentType type): student (studentName, studentRollNo, studentType) void displayInfo); ; Part2: Declare constructor which accepts the same 3 parameters as the parent class Student's constructor. /Pass the 3 parameters to the super constructor of the Student class /Part 3: Re-declare the me thod display Info (virtual method found inside of parent class Student) #endif //-GRAD H #ifndefGRAD H #define GRADH /Q1b: Create Grad class (5 points) //Part 1: Create a child class of the Student class named 'Grad // include "student . h" - class grad: public student public: grad(string studentName, int studentRollNo, studentType type): student (studentName, studentRollNo, studentType) void displayInfo); ; Part2: Declare constructor which accepts the same 3 parameters as the parent class Student's constructor. /Pass the 3 parameters to the super constructor of the Student class /Part 3: Re-declare the me thod display Info (virtual method found inside of parent class Student) #endif //-GRAD HStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started