Answered step by step
Verified Expert Solution
Question
1 Approved Answer
c++ class Student protected: int courses; string courseGrades: public: Studentint c) courses = c; courseGrades = new string[courses); } Student delete / courseGrades; 1 virtual
c++
class Student protected: int courses; string courseGrades: public: Studentint c) courses = c; courseGrades = new string[courses); } Student delete / courseGrades; 1 virtual bool award Degree() = 0; 1 class Undergraduate : public Student public: Undergraduate(int c) Student (c) } virtual bool award Degree() // if no course grade is Freturn true return false; 1 class Graduate : public Student protected: int advisors: string thesis Remarks; public: Graduatefint cinta) : Studentic advisors = a; thesis Remarks = new stringadvisors); } virtual bool awardDegree(X // if no course grade is Fand all advisors are satisfied with thesis, return true return false; } "Graduate() delete ll thesisRemarks: What can be wrong with the following implementation (code below), if the relationship among the classes is correct? Simply explain in words. * Step 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