home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky alt.amateur-comp:395 comp.lang.c:18784 comp.lang.c++:18313 comp.misc:4676
- Newsgroups: alt.amateur-comp,comp.lang.c,comp.lang.c++,comp.misc
- Path: sparky!uunet!gatech!usenet.ins.cwru.edu!agate!spool.mu.edu!sdd.hp.com!hp-cv!hp-pcd!hp-vcd!tonyl
- From: tonyl@vcd.hp.com (Tony Long)
- Subject: Re: What is Object Oriented Programming? Is C doomed?
- Sender: news@vcd.hp.com (News user)
- Message-ID: <Bzo97n.DHq@vcd.hp.com>
- Date: Tue, 22 Dec 1992 17:42:59 GMT
- References: <1fs9ufINN4ch@usenet.INS.CWRU.Edu>
- Organization: Hewlett-Packard VCD
- X-Newsreader: Tin 1.1 PL5
- Lines: 45
-
- Jay Robert Hauben (bm665@cleveland.Freenet.Edu) wrote:
- :
- : I went to a lecture the other day on object oriented
- : programming. The lecture was incomprehensible. The lecturer made
- : it sound like languages like C were no longer capable of handling
- : current programming needs and that a language like C++ would soon
- : be standard. It sounded like an "imminent doom" scenario like
- : those often heard about BASIC and about Usenet itself.
- :
- : Can anyone explain to me if the catagory of "object
- : oriented" programming (OOP?) is an important one and if there is
- : a difference between "object oriented" programming and "procedure
- : oriented" programming what the significance of this difference
- : is?
- :
- : Thanks.
- :
- Object-oriented programming is not a new concept; in fact the
- idea of "classes" as we see in C++, etc., has been around since the
- beginnings of modern programming (actually the late 1800's).
- OOP structures are merely an attempt to fully implement the
- idea of an "abstract data structure" in which data elements, the operations
- that are allowed upon them, and the principles governing those operations
- are combined in one structure.
- Classic C has no "template" for an abstract structure--the 'C'
- structures can only contain the data elements themselves and have no direct
- relationship to functions which operate upon them. That being said, anyone
- who has programmed extensively in a procedure-oriented language knows the
- necessity of modular programming--lumping related functions and data
- together and ideally constructing them to stand alone so that they can be
- called upon by other programs/functions to do a complex task.
- OOP simply takes this a step further by creating a template for
- data and functions to be linked together and used as a whole. Various
- implementations have various imbellishments adding power, sophistication,
- and confusion, but still the concept is simple and fundamental, and IMHO,
- OOP will come into its' own in one form or another.
- You can do anything in procedure-oriented programming that you
- can in OOP, but the templates provided by OOP languages make complex
- operations at least able to fit in defined structures.
-
- All the above, of course, teters on the
- brink of inanity,
-
- ---Tony Long---
-
-