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 / alliance group

answer is 1......b option

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you declare A pointer to function which receives an int pointer and returns a float pointer

1283


Why should you learn c++?

1063


Define macro.

1136


Is it possible to get the source code back from binary file?

1432


What are the stages in the development cycle?

1110


What is difference between class and function?

1154


What are the uses of typedef in a program?

1133


What is an operator in c++?

1117


Should a constructor be public or private?

1086


What is a terminating character in c++?

1444


What is difference between malloc()/free() and new/delete?

1223


What is the use of endl?

1031


What is stack unwinding?

1209


What is fflush c++?

1077


Explain differences between new() and delete()?

1150