What are virtual functions and what is its use?
A virtual function is a member function that you expect to be redefined in derived classes. When you refer to a derived class object using a pointer or a reference to the base class, you can call a virtual function for that object and execute the derived class's version of the function.
Is This Answer Correct ? | 0 Yes | 0 No |
what are the decision making statements in C++? Explain if statement with an example?
why is iostream::eof inside a loop condition considered wrong?
Explain the benefits of proper inheritance.
Explain container class.
What does '\r' and '\b' mean? Please explain with example.
Define a nested class.
What does catch(…) mean?
What is c++ map?
Why do you use the namespace feature?
Perform addition, multiplication, subtraction of 2-D array using Operator Overloading.
Differentiate between an external iterator and an internal iterator? What is the advantage of an external iterator.
When is a template better solution than a base class??