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 / sampurna pandey
a,b,c,e
| Is This Answer Correct ? | 1 Yes | 4 No |
Post New Answer View All Answers
What is basic if statement syntax?
Is c# written in c++?
Can you pass a vector to a function?
Define a pointer to a data member of the type pointer to pointer?
What is the difference between structure and class?
Why is c++ awesome?
Explain the difference between realloc() and free() in c++?
Can there be at least some solution to determine the number of arguments passed to a variable argument list function?
What is math h in c++?
the maximum length of a character constant can be a) 2 b) 1 c) 8
Can we use pointers in c++?
Explain Memory Allocation in C/C++ ?
In a function declaration what does extern means?
In which situation the program terminates before reaching the breakpoint set by the user at the beginning of the mainq method?
What is the default access level?