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
How important is c++?
what is the C++
Write some differences between an external iterator and an internal iterator? Describe the advantage of an external iterator.
What is c++ manipulator?
What do you mean by static variables?
Will c++ be replaced?
What relational operators if statements in c++?
Difference between inline functions and macros?
How does a copy constructor differs from an overloaded assignment operator?
Mention the purpose of istream class?
What is oop in c++?
iam a fresher to Qt(GUI a c++ based framework software). i need to develop the basic applications on designer by drag and dropping mechanism...so pls send me the procedure to design applications?