Answer Posted / p.kumarasamy,be(cse)
C++ virtual function is a member function of a class, whose
functionality can be over-ridden in its derived classes. The
whole function body can be replaced with a new set of
implementation in the derived class. The concept of c++
virtual functions is different from C++ Function overloading.
C++ Virtual Function - Properties:
C++ virtual function is,
* A member function of a class
* Declared with virtual keyword
* Usually has a different functionality in the derived class
* A function call is resolved at run-time
| Is This Answer Correct ? | 4 Yes | 1 No |
Post New Answer View All Answers
Why do we need oop?
What are main features of oop?
What are the data types in oop?
Question: Implement a base class Appointment and derived classes Onetime, Daily, Weekly, and Monthly. An appointment has a description (for example, “see the dentist”) and a date and time. Write a virtual function occurs_on(int year, int month, int day) that checks whether the appointment occurs on that date. For example, for a monthly appointment, you must check whether the day of the month matches. Then fill a vector of Appointment* with a mixture of appointments. Have the user enter a date and print out all appointments that happen on that date.
What is oops in simple words?
write string class as your own class in java without using any built-in function
Explain the advantages of inheritance.
What is meant by multiple inheritance?
How does polymorphism work?
Get me a number puzzle game-program
write a programe to calculate the simple intrest and compund intrest using by function overlading
What is polymorphism used for?
What is protected in oop?
How is polymorphism achieved?
What does and I oop mean in text?