Which one of the following class definitions is correct and…
Which one of the following class definitions is correct and free of errors in C++? A. class studentType{public: void setData(string, double, int);private: string name;}; B. class studentType{public: void setData(string, double, int); void print() const;private: string name; double gpa; } C. class studentType{public void setData(string, double, int);private string name; }; D. studentType class{public: void setData(string, double, int);private: string name; };
Read Details