let say i have a student class with a program class pointer for programEnrolled? how to i do the getter and setter and how do i access the member inside the programEnrolled (programName, programFees) through programEnrolled?
and when should i use a pointer function?
class clsStudent
{
private:
    string studentName;
    string studentID;
    clsProgram *programEnrolled;
};
class clsProgram{
private:
    string programName;
    double programFees;
    string programCode;
};
 
     
    