Answer Posted / yj
OOP concepts were introduced to overcome the limitations of POP(Procedure Oriented Programming). The first and foremost aim of OOP was to secure the data by encapsulating it in class and providing the only way to access them i.e., through functions which are in the same class.
Secondly, it reduces the complexity.
Thirdly, it reuses the code and hence uses memory efficiently.
There are 3 main OOP concepts :
1. Encapsulation.
2. Polymorphism.
3. Inheritance.
Is This Answer Correct ? | 34 Yes | 1 No |
Post New Answer View All Answers
What is an interface in oop?
What is the diamond problem in inheritance?
Why do we use class?
What is coupling in oop?
There are two base class B1,B2 and there is one class D which is derived from both classes, Explain the flow of calling constructors and destructors when an object of derived class is instantiated.
Can you name some types of inheritance?
What does and I oop mean?
Why multiple inheritance is not possible?
What are the types of abstraction?
Why polymorphism is used in oops?
What is protected in oop?
Question: Write a program that prints a paycheck. Ask the program user for the name of the employee, the hourly rate, and the number of hours worked. If the number of hours exceeds 40, the employee is paid “time and a half”, that is, 150 percent of the hourly rate on the hours exceeding 40. Be sure to use stepwi se refine ment and break your solution into several functions. Use the int_name function to print the dollar amount of the check.
What are the features of oop?
write a C++ program for booking using constructor and destructor.
Why do pointers exist?