what is virtual function?
Answer Posted / bhupendra singh
virtual function can be used to override the propertis of a
function.it is part of polymerphism.it is normaly used in inheritance.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
which feature are not hold visual basic of oop?
What is interface in oop?
Explain the concepts involved in Object Oriented programming.
What is abstraction in oop?
What is abstraction example?
Why multiple inheritance is not allowed?
What is Difference Between Inheritance and creating object and getting data? means Class A extends B{ B.getMethod();} (OR) Class A{ b obj=new B(); obj.getMethod(); }
What is the real time example of encapsulation?
What is abstraction and encapsulation?
program for insertion ,deletion,sorting in double link list
Why do pointers exist?
What is a class oop?
What are the 3 pillars of 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 are the realtime excercises in C++?