Q:

Which is most appropriate comment on following class definition :

0

Which is most appropriate comment on following class definition :

class Student 
{
    int a; 
    public : float a; 
};

  1. Error : same variable name can’t be used twice
  2. Error : Public must come first
  3. Error : data types are different for same variable
  4. It is correct

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

 (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

total answers (1)

OBJECT ORIENTED PROGRAMMING OOPS CONCEPT AND FEATURES MCQ

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
Which is known as generic class?... >>
<< What is default access specifier for data members ...