Explain the differences between list x; & list x();.
No Answer is Posted For this Question
Be the First to Post Answer
Explain friend class?
How do you invoke a base member function from a derived class in which you’ve overridden that function?
If a round rectangle has straight edges and rounded corners, your roundrect class inherits both from rectangle and from circle, and they in turn both inherit from shape, how many shapes are created when you create a roundrect?
What do you mean by funtion prototype?
What do you mean by friend class & friend function in c++?
Which of the following operator cannot be overloaded?
What are the different types of Storage classes?
class X { public: int x; static void f(int z); }; void X::f(int y) {x=y;} What is the error in the sample code above? a) The class X does not have any protected members. b) The static member function f() accesses the non-static z. c) The static member function f() accesses the non-static x. d) The member function f() must return a value. e) The class X does not have any private members.
What happens if a pointer is deleted twice?
Define a conversion constructor?
What do you mean by const correctness?
What is the error in the code below and how should it be corrected?