Which of the following class definitions is correct 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;};
Answer: A
You might also like to view...
In an _______ DNS query, the queried name server provides the best answer it currently has to the resolver
Fill in the blank(s) with correct word
If you save a custom theme to the Document Themes folder, that theme will be listed in its own row above the installed themes in the Themes gallery. _________________________
Answer the following statement true (T) or false (F)