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 steps in the development cycle?
What is private, public and protected inheritance?
Why do we need pointers?
How do you compile the source code with your compiler?
How to avoid changing constant values?
Is c++ platform dependent?
State the difference between delete and delete[].
Do inline functions improve performance?
What does catch(…) mean?
How to construct virtual constructor
6 Answers CIStems Software, Symphony,
Write a program and call it sortcheck.cpp which receives 10 numbers from input and checks whether these numbers are in ascending order or not. You are not allowed to use arrays. You should not define more than three variables
What is an object in c++?