Which is most appropriate comment on following class definition
Class student
{
int a;
public:
float a;
};
Answers
Answered by
1
Answer:
Discussion Forum
Que. Which is most appropriate comment on following class definition : class Student { int a; public : float a; };
b. Error : Public must come first
c. Error : data types are different for same variable
d. It is correct
Answer:Error : same variable name can't be used twice
Answered by
0
Answer:
C
Explanation: Only 9 types of classes are provided in general, namely, abstract, final, mutable, wrapper, anonymous, input-output, string, system, network. We may further divide the classes into parent class and subclass if inheritance is used.
Similar questions
Social Sciences,
1 month ago
Science,
3 months ago
Math,
3 months ago
Math,
10 months ago
Geography,
10 months ago