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
Explain this pointer?
What is c++ iterator?
What are smart pointers?
What is the full form nasa?
Can a constructor return a value?
What is Destructor in C++?
what are function pointers?
What c++ library is string in?
What is microsoft c++ redistributable 2013?
How to detect memory leaks in c++
What does the linker do?
What are the basics concepts of OOPS?