Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What is the difference between an external iterator and an internal iterator?

1052


Why namespace is used in c++?

1014


What are the benefits of operator overloading?

1156


What is vector pair in c++?

1177


Is c++ still being used?

971


What is c++ redistributable?

1169


Explain what happens when a pointer is deleted twice?

1195


What is nested class in c++?

900


What flag means?

895


How do you master coding?

988


What is the best c++ ide?

1086


How can a struct in c++ differs from a struct in c?

986


What is difference between c++ and c ++ 14?

988


What are the rules for naming an identifier?

1017


What is the difference between interpreters and compilers?

1110