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 do you know about Volatile keyword in C++? Explain with an example code.
What is the difference between malloc, calloc and realloc?
Tell me about virtual function
Write a syntax and purpose of switch statement.
What Are The Differences Between A C++ Struct And C++ Class?
Without using third variable write a code to swap two numbers.
What are Agilent PRECOMPILERS?
Explain what happens when an exception is thrown in C++.
What is a COPY CONSTRUCTOR and when is it called?
What does it mean to declare a function or variable as static?
Declare a pointer to a function that takes a char pointer as argument and returns a void pointer.
Can we provide one default constructor for our class?