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
Explain abstraction.
What is the purpose of templates in c++?
What is the difference between function overloading and operator overloading?
Which header file allows file i/o with streams a) fileio.h b) iostream.h c) fstream.h
What does flush do?
What are manipulators used for?
What are multiple inheritances (virtual inheritance)? What are its advantages and disadvantages?
difference between macro and function?
What is difference between initialization and assignment?
12 Answers HCL, HP, Infosys,
How many standards of c++ are there?
How long it will take to learn c++?
What do c++ programmers do?