Which Is Most Appropriate Comment On Following Class #19
Which is most appropriate comment on following class definition?</p> <pre><code class="language-cpp"> class Student { int a; public : float a; }; </code></pre>
This multiple choice question (MCQ) is related to the book/course
gs gs111 OOP Object Oriented Programming Java.
It can also be found in
gs gs111 OOPs Concept & Features - OOPs MCQ: Classes - Quiz No.1.
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