home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / alt / amateur / 395 < prev    next >
Encoding:
Internet Message Format  |  1992-12-22  |  2.8 KB

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