Write a note about the virtual member function?
Answer / Deep Kumar Singh
A virtual member function is a member function that can be overridden by derived classes. When a virtual function call is made through a base class pointer or reference, the correct version (either from the base or derived class) gets called depending on the type of object at runtime. This enables polymorphic behavior in C++.
| Is This Answer Correct ? | 0 Yes | 0 No |
When is the copy constructor called?
reading material is provided 3 books for c++ if u need more do let me know thnx i hve lots of material do let me know if u want it
Explain one-definition rule (odr).
What is the use of main function in c++?
Is java the same as c++?
What is the difference between std::vector and std::list
Write a recursive program to calculate factorial in c++.
Explain rethrowing exceptions with an example?
What is the difference between while and do while loop? Explain with examples.
What are mutator methods in c++?
What is an undefined behavior and sequence points
Which is the best c++ compiler for beginners?