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
Is c++ a good beginners programming language?
What is lazy initialization in c++?
How can I improve my c++ skills?
List the features of oops in c++?
Where do I find the current c or c++ standard documents?
What is a node class in c++?
Is it possible to write a c++ template to check for a function's existence?
In inline " expression passed as argument are evalauated once " while in macro "in some cases expression passed as argument are evaluated more than once " --> i am not getting it plz help to make me understand....
How is c++ different from java?
When can I use a forward declaration?
A company pays its salespeople on a commission basis. The salespeople receive $200 per week plus 9 percent of their gross sales for that week. For example, a saleperson who sells $5000 worth of merchandise in a week receives $200 plus 9 percent of $5000, or a total of $650. You have been supplied with a list of items sold by each salesperson. The values of these items are as follows: Item Value A 239.99 B 129.75 C 99.95 D 350.89 Write a program that inputs one salesperson's items sold in a week (how many of item A? of item B? etc.) and calculates and displays that salesperson's earnings for that week.
How would you obtain segment and offset addresses from a far address of a memory location?
What is the use of lambda in c++?
Why main function is special in c++?
How can a called function determine the number of arguments that have been passed to it?