home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / lang / cplus / 19811 < prev    next >
Encoding:
Text File  |  1993-01-24  |  2.0 KB  |  42 lines

  1. Newsgroups: comp.lang.c++
  2. Path: sparky!uunet!pmafire!news.dell.com!natinst.com!cs.utexas.edu!convex!constellation!a.cs.okstate.edu!richarm
  3. From: richarm@a.cs.okstate.edu (MCINTYRE RICHARD D)
  4. Subject: Re: Why is C++ not considered a true OOL?
  5. References: <19JAN199315162645@trentu.ca> <1993Jan20.222840.16439@ucc.su.OZ.AU> <1993Jan22.192629.295@base>
  6. Message-ID: <1993Jan23.200621.11611@a.cs.okstate.edu>
  7. Organization: Oklahoma State University, Computer Science, Stillwater
  8. Distribution: na
  9. Date: Sat, 23 Jan 93 20:06:21 GMT
  10. Lines: 30
  11.  
  12. In article <1993Jan22.192629.295@base> xinxu@stam.qe.bell.ca (Xin Xu) writes:
  13. >I'm doing a presentation of C++ for a Comparative Languages course.  During 
  14. >my readings, the authors mentioned that C++ isn't a true object oriented 
  15. >language, but they never said why.  This is ofcourse in comparison with 
  16. >smalltalk.  Does anyoune know why this isn't the case.  Could it be that C++ 
  17. >does not meet the definition of what true OOPs are supposed to be.  The 
  18. >books I have look at C++ from C, and they give a definition of what OOPs 
  19. >are supposed to look like, and C++ meets all there criteria.  But later 
  20. >they say it isn't a true OOL.
  21.              ^^^^
  22.  
  23. Are you sure your not confusing the concepts of pure vs. true?  Yes,
  24. according to most definitions of "object oriented", C++ is a true OOL.
  25.  
  26. However, C++ is not a pure OOL, as is Smalltalk.  In Smalltalk the
  27. only way to accomplish anything is through message passing.
  28. Everything is an object.  This is not the case with C++ because
  29. it is a superset of the C language.  A C++ program is only object
  30. oriented if you write it so that it's object oriented.  C++ programs
  31. can be written without using ANY object oriented concepts, and
  32. therefore, it's not a pure OOL.  But it is a true OOL in the sense
  33. that it does have the potential to do all of those things that an OOL
  34. is required to do.
  35.  
  36.  
  37. -- 
  38. Name :            Dallas McIntyre
  39. Occupation :        Student - Still looking for a "real" job.
  40. Favorite Far Side : Tarzan Introducing Himself to Jane.
  41. Email Address :        richarm@a.cs.okstate.edu
  42.