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


Please Help Members By Posting Answers For Below Questions

Explain the difference between c++ and java.

634


How can you differentiate between inheritance and implementation in c++?

640


Which function cannot be overloaded c++?

574


program explaining feautures of c++

1914


What are keywords in c++?

598






Where the memory to the static variables is allocated?

558


I want explanation for this assignment: how to connect mysql database using c/c++,please explain this detailly?

1579


What is wrapper class in c++?

624


What is a buffer c++?

581


What is the maximum combined length of command line arguments including the space between adjacent arguments?

590


What is class in c++ with example?

566


How do we implement inheritance in c++?

584


What is the this pointer?

632


Describe private, protected and public?

597


Will rust take over c++?

589