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 are associate containers?
What is c++ library?
Write about the access privileges in c++ and also mention about its default access level?
advantages and disadvantages of using Borland C++ / version 5.
Write some differences between an external iterator and an internal iterator?
How does a copy constructor differs from an overloaded assignment operator?
What is istream c++?
There is a magic square matrix in such a way that sum of a column or a row are same like 3 5 2 4 3 3 3 2 5 sum of each column and row is 10. you have to check that matrix is magic matrix or not?
What is volatile and pragma? When they are used?
What are the total number of lines written by you in C/C++? What is the most complicated or valuable program written in C/C++?
How does the copy constructor differ from the assignment operator (=)?
Define a program that reads two matrices of size 3x3 with real values from the user then prints their sum, difference and multiplication.