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 |
What are Agilent PRECOMPILERS?
Tell us the size of a float variable.
How will you print a list of all unique words from a string which may contain repeated words?
Do you know about Agilent PRECOMPILERS. ?
Explain the FOR loop with a help of a code.
Write a program to input an integer from the keyboard and display on the screen “WELL DONE” that many times.
what is the difference between a pointer and a reference?
0 Answers Amazon, Blue Star, C DAC,
Define an Abstract class in C++?
What is a virtual base class?
Identify the errors in the following program. #include <iostream> using namespace std; void main() { int i=5; while(i) { switch(i) { default: case 4: case 5: break; case 1: continue; case 2: case 3: break; } i-; } }
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; }
Is there a difference between class and struct?