Answer Posted / karthika
By the name denotes it allocate memory at the run time.
It is done by using virtual function and inheritance.
It uses pointer since it is executed at run time.it create
reference for the base class.so it takes many forms for the
same object.
eg method overiding.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What are objects 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.
Where is pseudocode used?
Why is object oriented programming so hard?
Why is it so that we can have virtual constructors but we cannot have virtual destructors?
What is abstraction example?
What is static modifier?
What is encapsulation with example?
Why can't we have instance(stack) of a class as a member of the same class like eg.Class A{A obj;} as we can have self refential pointer
Why do we use polymorphism in oops?
Templates mean
write a program that takes input in digits and display the result in words from 1 to 1000
What are the features of oop?
Can we create object of abstract class?
Which language is pure oop?