Question: using c++ please solve asap Consider the following class declaration: class Student ! public: int i grades; Student (int n) { // dynamically allocate an
Consider the following class declaration: class Student ! public: int i grades; Student (int n) { // dynamically allocate an array of grades of size n Student () { // delete the array of grades) }; Consider also the following statements: Student + 1 = new Student (); Student # 32 = new Student (81); Select one or more: a. Deleting si also deletes s2. b.si and s2 point at the same Student object cint a[10]; $1.grades = a; The above statement makes both s1.grades and s2.grades point at a. d. Deleting s1 deletes the array pointed at by s2.grades. e. Changing s1.grades[0] changes also s2.grades[0]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
