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 Memory Alignment?
What are the differences between a struct in C and in C++?
Is c++ an integer?
What is c++ good for?
Write a program to find the reverse Fibonacci series starting from N.
Explain how to initialize a const member data.
Do you know what are the new features that iso/ansi c++ has added to original c++ specifications?
Why struct is used in c++?
Are iterators pointers?
What are shallow and deep copies?
Is c++ a pure oop language?
When can you tell that a memory leak will occur?