class Foo {
const int x;
protected:
Foo(int f);
~Foo();
};
Foo f;
Referring to the sample code above, why will the class
declaration not compile?
a) The variable x is const.
b) The destructor is protected.
c) The destructor is not public.
d) The constructor is protected.
e) There is no default constructor.
Answers were Sorted based on User's Feedback
Is c++ an integer?
Briefly describe a B+ tree. What is bulk loading in it?
Are vectors passed by reference c++?
What is the difference between multiple and multilevel inheritance in c++?
What are the various arithmetic operators in c++?
Can you Mention some Application of C/C++?
Write about c++ storage classes?
how to create window program in c++.please explain.
How is c++ different from java?
how to access grid view row?
What do you mean by inheritance in c++? Explain its types.
What is difference between initialization and assignment?
12 Answers HCL, HP, Infosys,