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 Foo {
public:
Foo(int i) { }
};
class Bar : virtual Foo {
public:
Bar() { }
};

Bar b;

Referring to the above code, when the object 'b' is defined,
a compiler error will occur. What action fixes the compiler
error?
a) Adding a virtual destructor to the class Bar
b) Adding a constructor to Bar which takes an int parameter
c) Adding "Foo()" to the Bar constructor
d) Adding a copy constructor to the class Foo
e) Adding "Foo(0)" to the Bar::Bar initializer list

Answer Posted / guest

Ans. E

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can you declare an array without a size in c++?

1001


What size is allocated to the union variable?

1044


What is stream and its types in c++?

1037


Does c++ support multilevel and multiple inheritances?

995


What is the return value of the insertion operator?

1120


What is the protected keyword used for?

1105


Can I learn c++ in a week?

1054


Explain what is oop?

1059


Difference between delete and free.

1068


What is the C-style character string?

1133


What is null pointer and void pointer?

1056


What is an orthogonal base class in c++?

1152


What is the operator in c++?

1113


Can you be able to identify between straight- through and cross- over cable wiring? And in what case do you use straight- through and cross-over?

1089


Can non graphic characters be used and processed in C++?

1188