Answer Posted / sanjay makwana, puna
Run time type identification.
through typeid operator we can justify object at run time.
| Is This Answer Correct ? | 8 Yes | 2 No |
Post New Answer View All Answers
What is polymorphism in oop example?
What is meant by multiple inheritance?
How is polymorphism achieved?
What is byval and byref? What are differences between them?
Why multiple inheritance is not possible?
Why do pointers exist?
What is encapsulation example?
Can we override main method?
How do you achieve runtime polymorphism?
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.
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 solid in oops?
What is polymorphism what are the different types of polymorphism?
Why do we use polymorphism in oops?
What are oops methods?