Answer Posted / td
A pure virtual member function is a member function that the
base class forces derived classes to
provide. Normally these member functions have no
implementation. Pure virtual functions are
equated to zero.
class Shape { public: virtual void draw() = 0; };
| Is This Answer Correct ? | 8 Yes | 4 No |
Post New Answer View All Answers
What is super in oop?
What do you mean by overloading?
What is class and object in oops?
What is polymorphism programming?
to find out the minimum of two integer number of two different classes using friend function
What are the data types in oop?
What is polymorphism give a real life example?
What are functions in oop?
How is polymorphism achieved?
What are the three main types of variables?
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 polymorphism and example?
which feature are not hold visual basic of oop?
There are two base class B1,B2 and there is one class D which is derived from both classes, Explain the flow of calling constructors and destructors when an object of derived class is instantiated.
what are the realtime excercises in C++?