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

Is c++ an oop?

1193


the maximum length of a character constant can be a) 2 b) 1 c) 8

1149


What is setw manipulator in c++?

1125


What is meant by the term name mangling in c++?

1002


Are there any special rules about inlining?

1132


Write a program to encrypt the data in a way that inputs a four digit number and replace each digit by (the sum of that digit plus 7) modulus 10. Then sweep the first digit with the third, second digit with the fourth and print the encrypted number.

2631


How do I start a c++ project?

1123


What is difference between rand () and srand ()?

1149


If you don’t declare a return value, what type of return value is assumed?

1007


What does override mean in c++?

1118


Why cstdlib is used in c++?

1098


What happens if a pointer is deleted twice?

1324


What new()is different from malloc()?

1163


What is function prototyping?

1173


What is a NULL Macro? What is the difference between a NULL Pointer and a NULL Macro?

1164