Explain virtual functions in C++.
Answers were Sorted based on User's Feedback
Answer / nashiinformaticssolutions
• A virtual function is a member function that can be overridden in derived classes. Declared with the virtual keyword in the base class, enabling runtime polymorphism.
| Is This Answer Correct ? | 0 Yes | 0 No |
• A virtual function is a member function that can be overridden in derived classes. Declared with the virtual keyword in the base class, enabling runtime polymorphism.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / glibwaresoftsolutions
• A virtual function is a member function that can be overridden in derived classes. Declared with the virtual keyword in the base class, enabling runtime polymorphism.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is near, far and huge pointers? How many bytes are occupied by them?
What is the difference between public, private, protected inheritance?
What is vector processing?
What is the difference between set and map in c++?
What are the 2 main types of data structures?
How many storage classes are available in C++?
Explain the difference between abstract class and interface in c++?
What is c++ in english?
Difference between overloading vs. Overriding
What is the difference between while and do while loop?
How is new() different from malloc()?
What parameter does the constructor to an ofstream object take?