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
Why did you leave your last job?
Is it possible for the objects to read and write themselves?
Disadvantages of c++
Can turbo c++ run c program?
We use library functions in the program, in what form they are provided to the program?
What is an orthogonal base class in c++?
What does new in c++ do?
There is a array of 99 cells and we have to enter 1-100 elements in it , no two elements would repeat , so the is one no. missing because 99 cells and 1-100 nos. so we had to implement a function to find that missing no.
Explain how functions are classified in C++ ?
What is meant by entry controlled loop?
0 Answers Agilent, ZS Associates,
What is overloading unary operator?
What is near, far and huge pointers? How many bytes are occupied by them?