1.

#include<iostream.h>class a{public: void something(){ cout<<"a"; }};class b{public;void something(){ cout<<"b"; }};class c:public a,public b { };int main(){c x;x.something();return 0;}(a) a::something() is called(b) b:: something() is called(c) Runtime Error(d) Syntax Error 

Answer»

(d)  Syntax Error



Discussion

No Comment Found

Related InterviewSolutions