+1 vote
in Class 12 by kratos

class professor {};

class teacher:public virtual professor {};

class reasearcher:public virtual professor {};

class myprofessor:public teacher,public reasearcher {};

Referring to the same code above, if a object of class “myprofrssor” were created, how many instances of professor will it contain?

(a) 4 (b) 1 (c) 2 (d) 3

1 Answer

+4 votes
by kratos
 
Best answer

Correct option (b) 1

...