How can virtual functions in c++ be implemented?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C++ General Interview Questions

What are stacks? Give an example where they are useful.

0 Answers  


Write a program using shift_half( ) function to shift the elements of first half array to second half and vice versa.

0 Answers  


On throwing an exception by the animal constructor in p = new animalq, can memory leak occur?

0 Answers  


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.

2 Answers   Quark,


Can we inherit constructor in c++?

0 Answers  






What is the use of ‘using’ declaration?

1 Answers  


What is static class data?

0 Answers  


What are advantages of using friend classes?

0 Answers  


Is c++ harder than java?

0 Answers  


What is class invariant?

1 Answers  


What is Destructor in C++?

0 Answers  


Define macro.

0 Answers  


Categories