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 can we read/write Structures from/to data files?
Explain selection sorting?
What is the maximum combined length of command line arguments including the space between adjacent arguments?
What is c++ best used for?
Explain one method to process an entire string as one unit?
What are the basics of local (auto) objects?
What is dev c++ used for?
State two differences between C and C++.
Is c++ still in demand?
What is an undefined behavior and sequence points
Is sorted c++?
What does it mean to declare a destructor as static?
Will the following program execute?
What is heap sort in c++?
Write about the stack unwinding?