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
What is basic if statement syntax?
Problem 5: Hero's Formula is A method for calculating the area of a triangle when you know the lengths of all three sides. Let a, b, c be the lengths of the sides of a triangle. The area is given by:A= pp-ap-b(p-c) | wherep= a+b+c2 | | Write a C-language code to calculate area of triangle using above method. Take the three lengths of the triangle from the user and display the area that your program calculates.
Can we use resume in error handling i.e. in the catch block
What is the difference between static link library and dynamic link library?
What is the extension of c++?
How can you say that a template is better than a base class?
What are the new features that iso/ansi c++ has added to original c++ specifications?
What is the difference between map and hashmap in c++?
What about Virtual Destructor?
Write a program which uses functions like strcmp(), strcpy()? etc
What is oop in c++?
What is the use of turbo c++?