Computer Science, asked by srirambandi345, 3 months ago


Which is most appropriate comment on following class definition
Class student
{
int a;
public:
float a;
};

Answers

Answered by vaishnavipamu123
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 mahapuresss123
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