Results 1 to 10 of 21

Thread: Procedural v.s Object oriented programming?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #17
    I didn't read everypost you wrote, but I think there is a "problem" whith the "Object-Oriented Programming" concept.

    I mean, Many people think that OOP is a feature of certain programming languages. I don't think so. I think that OOP is a way to face a problem.

    Actually it's possible to do OOP in plain C, including encapsulation and inheritance! (And I mean plain C, not C++ nor Objective C). An actual example; there you have the Allegro library, written in C and Assembler but using an "Object" approach to define lots of objects. If you see the description of the BITMAP structure you'll see it has a virtual method table to define functions as drawing primitives, blitting, sprite drawing, etc.

    On the other way, use a language that has classes doesn't guarantee that you're using OOP. Actually most Visual Studio, Delphi and Lazarus programmers I meet use objects but they don't use OOP! They just drag'n'drow some components to the form and program responses to some events and... what? Is that OOP? Can't you do it with pure procedural programming?

    Just thinking about this.
    Last edited by Ñuño Martínez; 07-10-2010 at 07:39 AM.
    No signature provided yet.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •