Monday
September 22, 2014

Homework Help: C++

Posted by Jason on Wednesday, July 25, 2007 at 7:44pm.

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?



Thank you for using the Jiskha Homework Help Forum, BUT why is this posting labeled "C++?" Sorry, but I do not understand what the sample code has to do with anything? A teacher teaches students but a researcher only does research and does not instruct students. A professor, especially at the university level, usually has an associate teaching the class. Can you clarify exactly what you need?

SraJMcGin this appears to be a C++ programming question, but I'm far to rusty to answer it.

Thank you for using the Jiskha Homework Help Forum. Aha! Thank you, Dr. Here are then some sites that may help:

1. http://www.cprogramming.com/

2. http://cplus.about.com/

Answer this Question

First Name:
School Subject:
Answer:

Related Questions

English Composition - I'm writing a synthesis paper for my college english ...
Computer - Question 1 In the code below, there is an ambiguous reference in the ...
Java - What is the significance of public, private and public members of a class...
Java programming - List all overloading methods (including constructors) in this...
proof read and make corrections - Public schools vs. Private schools Private ...
Please proofread my essay and make corrections - Public schools vs. Private ...
General - Is it illegal for a school to not have a subsitute teacher assigned to...
proofreading English - Public schools vs. Private schools Private and public ...
math - •You and three (3) of your friends were in the same advance placement ...
calc - a math professor is thrown off the matthews bridges, height 240ft, by a ...

Search
Members