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
Why oops is important?
What is polymorphism used for?
What are the 3 pillars of oop?
design a c++ class for the chess board,provide a c++ class definition for such class(only class definition is required)
What is methods in oop?
Why do we use polymorphism?
write string class as your own class in java without using any built-in function
What are oops functions?
What is the point of polymorphism?
What are two types of polymorphism?
Why is oop better than procedural?
What is constructor in oop?
What is encapsulation oop?
How to use CMutex, CSemaphore in VC++ MFC
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.