what is object oriented programming and procedure oriented
programming?
Answer Posted / achal ubbott
OOP is basically a way of doing organized programming. When
in old times, computer programs began to expand hugely then
a need to organize the code became important. So OOP came
into being.
Otherwise procedural programming(like in C) is enough to
get things going. But huge programs in C become difficult
to deal with. Since everything is global so a lot of
inconsistencies may arise.
| Is This Answer Correct ? | 9 Yes | 8 No |
Post New Answer View All Answers
What is overloading in oop?
Why do we use class in oops?
Are polymorphisms mutations?
Why do we use inheritance?
Can we have inheritance without polymorphism?
Is enum a class?
Can you explain polymorphism?
What is for loop and its syntax?
What is the types of inheritance?
Why do we need oop?
What is difference between oop and pop?
What is the benefit of oop?
How to use CMutex, CSemaphore in VC++ MFC
Why do we use oops?
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.