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 |
Briefly explain various access specifiers in C++.
What is the difference between public, private, and protected inheritance?
What is wrong with this statement? std::auto_ptr ptr(new char[10]);
Write a program to display the following output using a single cout statement Maths=90 Physics=77 Chemistry = 69
What are "pure virtual" functions?
0 Answers Adobe, Alter, iNautix,
What is the purpose of a constructor? Destructor?
what is friend function in C++?
Write a program to input an integer from the keyboard and display on the screen “WELL DONE” that many times.
What does malloc return in C and C++?
what is a pragma in C++?
Identify the error in the following program. include<iostream> using namespace std; void main() { int num[]={1,2,3,4,5,6}; num[1]==[1]num ? cout<<"Success" : cout<<"Error"; }
Write a C++ Program to find Addition of Two Numbers.