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
What is class definition in c++ ?
Evaluate as true or false: !(1 &&0 || !1) a) True b) False c) Invalid statement
When should we use container classes instead of arrays?
State the difference between delete and delete[].
Implement strcmp
Is c++ platform dependent?
What is the difference between a copy constructor and an overloaded assignment operator?
4 Answers Belzabar, Citrix, Microsoft, Wipro,
difference between macro and function?
What are the unique features of C++.
What is the best ide for c++?
What are formatting flags in ios class?
What is a syntax in c++?