class professor {};
class teacher : public virtual professor {};
class researcher : public virtual professor {};
class myprofessor : public teacher, public researcher {};
Referring to the sample code above, if an object of class
"myprofessor" were created, how many instances of professor
will it contain?
a) 0
b) 1
c) 2
d) 3
e) 4
Answer Posted / alliance group
answer is 1......b option
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
How do you declare A pointer to function which receives an int pointer and returns a float pointer
Why should you learn c++?
Define macro.
Is it possible to get the source code back from binary file?
What are the stages in the development cycle?
What is difference between class and function?
What are the uses of typedef in a program?
What is an operator in c++?
Should a constructor be public or private?
What is a terminating character in c++?
What is difference between malloc()/free() and new/delete?
What is the use of endl?
What is stack unwinding?
What is fflush c++?
Explain differences between new() and delete()?