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.
Answer Posted / gopinath das
a,b,c,d
| Is This Answer Correct ? | 1 Yes | 4 No |
Post New Answer View All Answers
State the difference between delete and delete[].
What are the unique features of C++.
Is c or c++ more useful?
What is linked list in c++?
Why is c++ difficult?
What are the differences between malloc() and calloc()?
What is the benefit of encapsulation?
What is the basic structure of c++ program?
What is using namespace std in cpp?
Can we sort map in c++?
Write a program for Divide a number with 2 and Print the output ( NOTE: Check for divide by zero error).
What is the latest c++ standard?
Which sort does c++ use?
What is the v-ptr?
Is ca high or low level language?