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 / guest
Ans is value 1 i.e ans B
| Is This Answer Correct ? | 22 Yes | 0 No |
Post New Answer View All Answers
What is the difference between an external iterator and an internal iterator?
Why namespace is used in c++?
What are the benefits of operator overloading?
What is vector pair in c++?
Is c++ still being used?
What is c++ redistributable?
Explain what happens when a pointer is deleted twice?
What is nested class in c++?
What flag means?
How do you master coding?
What is the best c++ ide?
How can a struct in c++ differs from a struct in c?
What is difference between c++ and c ++ 14?
What are the rules for naming an identifier?
What is the difference between interpreters and compilers?