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
if i want cin 12345678910 and cout abcdefghij. so how can i create the program?. example : if i key in 8910 so the answer is ghij.
Are strings mutable in c++?
What kind of jobs can I get with c++?
What is the purpose of ios::basefield in the following statement?
Write a corrected statement in c++ so that the statement will work properly. if (4 < x < 11) y=2*x;
Search for: what is pair in c++?
Explain the ISA and HASA class relationships. How would you implement each in a class design?
What is the full form of ios?
What is an opaque pointer?
How is computer programming useful in real life?
What is a constructor initializer list and when we use constructor initializer list?
What is decltype c++?