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. 👍 0
  2. 👎 0
  3. 👁 120
asked by Jason
  1. only 1 instance of professor will it contain.

    1. 👍 0
    2. 👎 0
    posted by Bibin

Respond to this Question

First Name

Your Response

Similar Questions

  1. 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

    asked by Keonn'a on February 19, 2018
  2. Math (advice)

    So in my calculus class we learned about implicit differentiation today. The professor would stop and ask if we had any questions, which was nice. I didn't ask any questions though, because I don't really like to ask questions

    asked by TayB on March 4, 2015
  3. 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

    asked by Summer on June 25, 2009
  4. math

    •You and three (3) of your friends were in the same advance placement high school chemistry class in high school. All four (4) of you decided to take the same chemistry class together at the local university along with 21

    asked by jacque on December 4, 2012
  5. Social Studies

    Hi, I'm having a really hard time understanding this concept. I know the answers because my teacher told us them but I don't know why they are the answers. Could you explain them please? 1. Professor Roth's rule is that any

    asked by Sarah on February 1, 2016
  6. Broadcast writing-Revised

    FYI: It is in all caps because with this class our teacher recommends us to write this way because it's easier to read out loud. I revised it A UNIVERSITY STUDENT RAN INTO HER PROFESSOR AT SCHOOL THE SAME DAY SHE PRETENDED TO BE

    asked by Blaze on February 6, 2013
  7. English- emailing response to professor

    So I emailed a professor asking the professor about taking a test earlier than the scheduled day it is on next week and the professor responded and said they could arrange for me to take the test early if I want. And to let the

    asked by Tay Tay on February 13, 2015
  8. business

    I am so lost with this assignment.I hope that someone can help me. For my business class we are to: Plan for an interview for a job you would like to have. Consider how you might manage the résumé, job application letter,

    asked by kim on June 25, 2007
  9. statistics

    3 PROFESSORS WANT TO KNOW IF HAVING 500 STUDENTS IN THEIR CLASS IS DETRIMENTAL TO PROPER LEARNING. 1ST PROFFESSOR RANDOMLY HANDS OUT THE QUESTIONNAIRE TO 50 STUDENTS; ALL 50 ARE RETURNED TO HIM DURING CLASS. 2ND PROFFESSOR HANDS

    asked by jane on February 12, 2008
  10. Computer

    Question 1 In the code below, there is an ambiguous reference in the constructor. The constructor is supposed to assign the value of the formal parameter to the class member variable x. Notice, however, that the formal parameter

    asked by bano on December 5, 2013

More Similar Questions