Give two or more real cenario of virtual function and
vertual object
No Answer is Posted For this Question
Be the First to Post Answer
What are the fields of vtable
1.what are two type of classe members called? 2.what is data hiding and data encapsulation? 3.how do you make a class member visible aouside its class? 4.what is the default visibility of a class data member? 5.what are the advantages of oop over the structured programing?
what is pointers
What's the full form of STL?
when my application exe is running nad i don't want to create another exe what should i do
What causes polymorphism?
What are the access specifiers avaible in c++?
why destructor is not over loaded?
explain dynamic binding by drowing
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.
There are 2 classes defined as below public class A { class B b; } public class B { class A a; } compiler gives error. How to fix it?
What is abstraction in oop with example?