Tell me about virtual function
A C++ virtual function is a member function in the base class that you redefine in a derived class. It is declared using the virtual keyword. It is used to tell the compiler to perform dynamic linkage or late binding on the function. ... A 'virtual' is a keyword preceding the normal declaration of a function.
| Is This Answer Correct ? | 0 Yes | 0 No |
In C++ what is the meaning of data hiding?
Briefly explain various access specifiers in C++.
What is an algorithm (in terms of the STL/C++ standard library)?
What does it mean to declare a function or variable as static?
Explain the FOR loop with a help of a code.
Define type casting in C++.
Write a C++ Program to Reverse a Number using while loop.
Identify the error in the following program. #include<iostream.h> void main() { int i = 0; i = i + 1; cout « i « " "; /*comment *//i = i + 1; cout << i; }
C++ supports multiple inheritance. What is the “diamond problem” that can occur with multiple inheritance? Give an example.
Tell How To Check Whether A Linked List Is Circular ?
When would you choose to return an error code rather than throw an exception?
Write a C++ program to print strings in reverse order.