1.

Which among the following is proper syntax for class given below?

A. void disp::A(){ }
B. void A::disp(){ }
C. void A:disp() { cout<<a<<b ; }
D. void disp:A(){ cout<<a<<b; }View Answer
Answer» C. void A:disp() { cout<<a<<b ; }


Discussion

No Comment Found