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

  1. Newsgroups: comp.lang.c++
  2. Path: sparky!uunet!cs.utexas.edu!torn!utzoo!censor!animal!base!stam.qe.bell.ca!xinxu
  3. From: xinxu@stam.qe.bell.ca (Xin Xu)
  4. Subject: Re: Why is C++ not considered a true OOL?
  5. Message-ID: <1993Jan22.192629.295@base>
  6. Sender: xinxu@mars (Xin Xu)
  7. Nntp-Posting-Host: mars
  8. Organization: Telecom Canada E.D.S.
  9. References: <19JAN199315162645@trentu.ca> <1993Jan20.222840.16439@ucc.su.OZ.AU>
  10. Distribution: na
  11. Date: Fri, 22 Jan 1993 19:26:29 GMT
  12. Lines: 36
  13.  
  14. In article <1993Jan20.222840.16439@ucc.su.OZ.AU>, maxtal@extro.ucc.su.OZ.AU (John MAX Skaller) writes:
  15. |> In article <19JAN199315162645@trentu.ca> ayounes@trentu.ca (Amro Younes, Trent University, C.C. #314, Peterborough, ON, Canada K9J 7B8. (705) 749-0391) writes:
  16. |> >I'm doing a presentation of C++ for a Comparative Languages course.  During 
  17. |> >my readings, the authors mentioned that C++ isn't a true object oriented 
  18. |> >language, but they never said why.  This is ofcourse in comparison with 
  19. |> >smalltalk.  Does anyoune know why this isn't the case.  Could it be that C++ 
  20. |> >does not meet the definition of what true OOPs are supposed to be.  The 
  21. |> >books I have look at C++ from C, and they give a definition of what OOPs 
  22. |> >are supposed to look like, and C++ meets all there criteria.  But later 
  23. |> >they say it isn't a true OOL.
  24. |> >
  25. |> 
  26. |>     I say C++ is class oriented, not object oriented.
  27. |>     C++ doesnt have garbage collection.
  28. |>     C++ doesn't (really) allow dynamic typing.
  29. |> 
  30. |> This latter point might be a crucial distinction: a true Object
  31. |> Oriented language has no classes and no types, it just has
  32. |> objects that are all different, so method calling must
  33. |> be dynamic.
  34. |>
  35.  
  36.     class is a useful mechnism for the abstraction of messy object world.
  37. C++ class can be used to capture many kinds of relationships among objects,
  38. and also the hierarchical relationships among classes. All these are very
  39. useful for handling the complexity of the real world problems. 
  40.     If a true object-oriented language has no class, no type, there should be
  41. something else for ABSTRACTION, for example, AI people use different 
  42. methods and terms for real world modeling.  A OOP language  without 
  43. abstraction mechnism is of little use. 
  44.  
  45. -- 
  46. |> ;----------------------------------------------------------------------
  47. |>         JOHN (MAX) SKALLER,         maxtal@extro.ucc.su.oz.au
  48. |>     Maxtal Pty Ltd, 6 MacKay St ASHFIELD, NSW 2131, AUSTRALIA
  49. |> ;------ SCIENTIFIC AND ENGINEERING SOFTWARE ---ph:  2 799 8223 --------
  50.