Answer Posted / ranjith jayan
a class is a collection of similar objects. ex: orange is
an object for the class fruits
| Is This Answer Correct ? | 16 Yes | 0 No |
Post New Answer View All Answers
What is inheritance and how many types of inheritance?
How long to learn object oriented programming?
Why is oop better than procedural?
Get me a number puzzle game-program
What is abstraction encapsulation?
officer say me - i am offered to a smoking , then what can you say
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
What is balance factor?
What does no cap mean?
Why multiple inheritance is not allowed?
What is abstraction in oops?
What polymorphism means?
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 polymorphism in oops with example?
Why we use classes in oop?