Which Among The Following Is Proper Syntax For Class Given #282
Which among the following is proper syntax for class given below?</p> <pre><code class="language-cpp"> class A { int a,b; public : void disp(); } </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 Class Members & Types - Object Oriented Programming MCQ: Member Functions - Quiz No.2.
Which among the following is proper syntax for class given below?
class A { int a,b; public : void disp(); }
void disp::A(){ }
void A::disp(){ }
void A:disp() { cout<<a<<b ; }
void disp:A(){ cout<<a<<b; }