C++

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/

  1. 👍
  2. 👎
  3. 👁
  1. only 1 instance of professor will it contain.

    1. 👍
    2. 👎

Respond to this Question

First Name

Your Response

Similar Questions

  1. Business

    In a frequency distribution, what is the number of observations in a class called? A. class midpoint B. class interval C. class array D. class frequency E. none of the above

  2. Art

    based on their attire, playing music during leisure time is most likely a pursuit of which greek class citizen? lower class musical class upper class middle class i believe it is upper class

  3. stats 101

    how do you find the lower class limit,upper class limit, class width, class midpoint, and class boundaries from a set of frequencies data

  4. english

    Identify the correct sentence. a. Have you spoken to your professor about your grade in English class? b. Have you spoken to your prof about your grade in english class? c. Have you spoken to your Professor about your grade in

  1. informal Logic

    The untimely death of Professor Hathaway halted his groundbreaking research into the uses of solar power. It therefore appears that Hathaway’s research will not result in practical applications. Which one of the following, if

  2. STATS HELP

    Final averages are typically approximately normally distributed with a mean of 72 and a standard deviation of 12.5. Your professor says that the top 8% of the class will receive an A, the next 20% a B, the next 42% a C, the next

  3. Statistics

    Which Professor? Suppose Professor Alpha and Professor Omega each teach Introductory Biology. You need to Decide which professor to take the class from and have just completed your introductory statistics course. Records obtained

  4. Math ~ CHECK ANSWER

    Below are two sets of student quiz scores on a 30-point quiz. Which of the following can you conclude by comparing their box-and-whisker plots? Class A: 5, 10, 13, 18, 19, 25, 29 Class B: 1, 3, 5, 7, 9, 9, 13 a) The first quartile

  1. Coding

    import java.util.Scanner; public class main { public static void main(String[] args) { Scanner wins = new Scanner(System.in); Scanner games = new Scanner(System.in); double q, w, e; System.out.println("Enter Wins: "); q =

  2. statistics

    Use this table to answer the questions. Height (in inches) Frequency 50-52 5 53-55 8 56-58 12 59-61 13 62-64 11 1. Identify the class width. 2. Identify the midpoint of the first class. 3. Identify the class boundaries of the

  3. algebra

    Classes A and B have 35 students each. If seven girls shift from class A to class B, then the number of girls in the classes would interchange. If four girls shift from class B to class A, then the number of girls in class A would

  4. English Composition

    I'm writing a synthesis paper for my college english composition class. My topic is: The relationship between social class and public education. So far, my thesis: My argument is that students in public education should not be

You can view more similar questions or ask a new question.