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
How would you find out if a linked-list is a cycle or not?
Search for: what is pair in c++?
What is a manipulative person?
Explain static and dynamic memory allocation with an example each.
What does h mean in maths?
What is a stack c++?
Can there be at least some solution to determine the number of arguments passed to a variable argument list function?
What is a container class?
What are the 2 main types of data structures?
What is c++ hiding?
We use library functions in the program, in what form they are provided to the program?
How much do c++ programmers make?
What are exceptions c++?
What is command line arguments in C++? What are its uses? Where we have to use this?
What kind of problems can be solved by a namespace?