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
Explain the difference between c++ and java.
How can you differentiate between inheritance and implementation in c++?
Which function cannot be overloaded c++?
program explaining feautures of c++
What are keywords in c++?
Where the memory to the static variables is allocated?
I want explanation for this assignment: how to connect mysql database using c/c++,please explain this detailly?
What is wrapper class in c++?
What is a buffer c++?
What is the maximum combined length of command line arguments including the space between adjacent arguments?
What is class in c++ with example?
How do we implement inheritance in c++?
What is the this pointer?
Describe private, protected and public?
Will rust take over c++?