GeeksforGeeks » Object oriented queries
Object Oriented or Procedure Oriented
(3 posts)-
How to decide upon the programming paradigm for a given real world problem?
-
Object Oriented programming should be preferred for medium to big problems and Procedure Oriented Programming for small problems. This is not the general rule, there can be other factors also.
-
Procedure Oriented programming should be used for problems in which a procedure is known or same procedure can be applied for all similar problems.
e.g. we can write a procedure to add two integers. It will work for all integers.Object Oriented programming whereas used in problems which depends upon real world object .
e.g. we can't repair two cars by same mechanism as it depends upon the service required by a particular car.
Reply
You must log in to post.