Question: Write a C++ program to declare a class COLLEGE with members as college code. Derive a new classas STUDENT with members as studid. Accept and
Write a C++ program to declare a class COLLEGE with members as college code. Derive a new classas STUDENT with members as studid. Accept and display details of student along with college forone object of student.
Step by Step Solution
There are 3 Steps involved in it
c include include using namespace std class COLLEGE protected string collegeCode public void setCollegeCodeconst string code collegeCode code string getCollegeCode const return collegeCode class STUDE... View full answer
Get step-by-step solutions from verified subject matter experts
