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 / alphare
a, d, e
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
Evaluate as true or false: !(1 &&0 || !1) a) True b) False c) Invalid statement
What is an inclusion guard?
Which bitwise operator is used to check whether a particular bit is on or off?
What is the main use of c++?
What are c++ data types?
Can we use clrscr in c++?
Is empty stack c++?
What are its advantages and disadvantages of multiple inheritances (virtual inheritance)?
How would you use the functions memcpy(), memset(), memmove()?
Write about the stack unwinding?
Define upcasting.
How can you quickly find the number of elements stored in a a) static array b) dynamic array ? Why is it difficult to store linked list in an array?how can you find the nodes with repetetive data in a linked list?
Can I uninstall microsoft c++ redistributable?
Which sort does c++ use?
What are signs of manipulation?