oops concept is used for?

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


Please Help Members By Posting Answers For Below Questions

What is an interface in oop?

591


What is the diamond problem in inheritance?

577


Why do we use class?

633


What is coupling in oop?

592


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.

1454






Can you name some types of inheritance?

639


What does and I oop mean?

612


Why multiple inheritance is not possible?

596


What are the types of abstraction?

553


Why polymorphism is used in oops?

581


What is protected in oop?

602


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.

693


What are the features of oop?

635


write a C++ program for booking using constructor and destructor.

2042


Why do pointers exist?

655