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