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
Difference between class and structure.
What is #include iostream?
What function initalizes variables in a class: a) Destructor b) Constitutor c) Constructor
What is function prototyping?
What size is allocated to the union variable?
How to give an alternate name to a namespace?
Can I uninstall microsoft c++ redistributable?
Is eclipse good for c++?
What is the insertion operator and what does it do?
Show the declaration for a static member variable.
What is your strongest programming language (Java, ASP, C, C++, VB, HTML,C#, etc.)?
24 Answers Infosys, Microsoft, TCS,
What is the use of turbo c++?