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 should runtime errors be handled in c++?
How to access a variable of the structure?
Which header file allows file i/o with streams a) fileio.h b) iostream.h c) fstream.h
What are the different types of comments allowed in c++?
Are strings immutable in c++?
How does list r; differs from list r();?
What is a constructor and how is it called?
Name the implicit member functions of a class.
What is the difference between global int and static int declaration?
Is c++ a programming language?
What are containers in c++?
Is c++ free?
How should a contructor handle a failure?
Why main function is special in c++?
What is the best free c++ compiler for windows?