Can anyone please explain runtime polymorphism with a real time example??at what ciscumstances we go for it??
1 4860write a programe to calculate the simple intrest and compund intrest using by function overlading
2201#include
#include
#include
assume the program must insert 4 elements from the key board and then do the following programs.sequential search(search one of the elements),using insertion sort(sort the element) and using selection sort(sort the element).
2112
How do you define a class in oop?
What is use of overloading?
Following are the class specifications: class {int a}; class {int b}; Using friend funtion,calculate the max of two objects and display it.
How do you define social class?
can we make game by using c
Why do we use polymorphism?
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.
What is the difference between inheritance and polymorphism?
What is inheritance in oop?
What is destructor example?
What is abstraction in oops?
Why do we use 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.
What is difference between pop and oop?
What is coupling in oops?