GeeksforGeeks » Object oriented queries

Object Oriented or Procedure Oriented

(3 posts)
  1. kamal
    guest
    Posted 1 year ago #

    How to decide upon the programming paradigm for a given real world problem?

  2. Shekhu
    Member
    Posted 1 year ago #

    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.

  3. Pari
    guest
    Posted 1 year ago #

    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.

RSS feed for this topic