How can virtual functions in c++ be implemented?
No Answer is Posted For this Question
Be the First to Post Answer
What are stacks? Give an example where they are useful.
Write a program using shift_half( ) function to shift the elements of first half array to second half and vice versa.
On throwing an exception by the animal constructor in p = new animalq, can memory leak occur?
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.
Can we inherit constructor in c++?
What is the use of ‘using’ declaration?
What is static class data?
What are advantages of using friend classes?
Is c++ harder than java?
What is class invariant?
What is Destructor in C++?
Define macro.