Which is most appropriate comment on following class definition :
class Student
{
int a;
public : float a;
};
- Error : same variable name can’t be used twice
- Error : Public must come first
- Error : data types are different for same variable
- It is correct
(a).Error : same variable name can’t be used twice
need an explanation for this answer? contact us directly to get an explanation for this answer