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
Which is not an object oriented programming language?
Can we create object of abstract class?
• What are the desirable attributes for memory managment?
Following are the class specifications: class {int a}; class {int b}; Using friend funtion,calculate the max of two objects and display it.
What are functions in oop?
INSTANCE FIELDS DECLARED private ARE ACCESSIBLE BY THE METHODS ONLY.CAN WE CHANGE THE private FIELD OF AN OBJECT IN A METHOD OF SOME OTHER OBJECT OF THE SAME CLASS?
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 encapsulation with example?
just right the logic of it 1--> If few people are electing then every time ur candidate should win 2--> arrange books in box, if box carry weight == books weight then take another box..... find the no of box required.
How do you achieve runtime polymorphism?
hi all..i want to know oops concepts clearly can any1 explain??
What is interface? When and where is it used?
What is the difference between encapsulation and polymorphism?
Why do we use inheritance?
State what is encapsulation and friend function?