Computer Science, asked by yashRonaldo3997, 6 months ago

How OOP overcomes procedural paradigm's problem?

Answers

Answered by amitesh66
9

Procedural programming's design problem is that procedures and data structures are separate, but changes to one typically require changes to the other. This is solved in OO by keep the data and methods of an object together (Encapsulation (computer programming) ).

Answered by Anonymous
1

Explanation:

 \huge \tt \green{Question}

☞How OOP overcomes procedural paradigm's problem?

 \huge \tt \pink{Answer}

☛It is not a good idea to solve a Procedural Programming problem using Object Oriented Programming techniques.

☛Procedural Programming is one paradigm and Object Oriented Programming is another programming paradigm. Neither one is the panacea to solve all problems. But in particular, if you have a problem that is well suited for Procedural Programming, you should use that paradigm.

☛If the “paradigm” word sound weird to you, replace it with something like (simplified) “a technique of organizing algorithms and data structures to solve problems".

☛If Procedural Programming technique is what your problem request, use it. Do not force Object Oriented techniques.

Similar questions