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
What does obj stand for?
Define a constructor - what it is and how it might be called (2 methods)?
Write about the stack unwinding?
What is capacity in vector in c++?
Can I create my own functions in c++?
What are the sizes and ranges of the basic c++ data types?
What are the classes in c++?
How would you differentiate between a pre and post increment operators while overloading?
What is c++ flowchart?
C is to C++ as 1 is to a) What the heck b) 2 c) 10
What is searching?
what is COPY CONSTRUCTOR and what is it used for?
Why are pointers used?
Explain method of creating object in C++ ?
Why do we need constructors in c++?