What are the main differences between procedure oriented
languages and object oriented languages?
Answer Posted / rahul madanan
procedural language: instructions will be divided into
various blocks called as datas .It concentrates on
procedures rather than datas.
oops: class is created where data and functions are
encapsulated. It concentrates on data rather than
procedure.
| Is This Answer Correct ? | 19 Yes | 15 No |
Post New Answer View All Answers
What is the significance of classes in oop?
What is meant by multiple inheritance?
Why is abstraction needed?
#include
2. Give the different notations for the 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.
How do you define a class in oop?
What is the problem with multiple inheritance?
What are the two different types of polymorphism?
Why do we need oop?
What is multilevel inheritance?
why reinterpret cast is considered dangerous?
What is static in oop?
What do you mean by Encapsulation?
What is encapsulation and abstraction? How are they implemented in C++?