home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: sparky!uunet!pmafire!news.dell.com!natinst.com!cs.utexas.edu!convex!constellation!a.cs.okstate.edu!richarm
- From: richarm@a.cs.okstate.edu (MCINTYRE RICHARD D)
- Subject: Re: Why is C++ not considered a true OOL?
- References: <19JAN199315162645@trentu.ca> <1993Jan20.222840.16439@ucc.su.OZ.AU> <1993Jan22.192629.295@base>
- Message-ID: <1993Jan23.200621.11611@a.cs.okstate.edu>
- Organization: Oklahoma State University, Computer Science, Stillwater
- Distribution: na
- Date: Sat, 23 Jan 93 20:06:21 GMT
- Lines: 30
-
- In article <1993Jan22.192629.295@base> xinxu@stam.qe.bell.ca (Xin Xu) 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.
- ^^^^
-
- Are you sure your not confusing the concepts of pure vs. true? Yes,
- according to most definitions of "object oriented", C++ is a true OOL.
-
- However, C++ is not a pure OOL, as is Smalltalk. In Smalltalk the
- only way to accomplish anything is through message passing.
- Everything is an object. This is not the case with C++ because
- it is a superset of the C language. A C++ program is only object
- oriented if you write it so that it's object oriented. C++ programs
- can be written without using ANY object oriented concepts, and
- therefore, it's not a pure OOL. But it is a true OOL in the sense
- that it does have the potential to do all of those things that an OOL
- is required to do.
-
-
- --
- Name : Dallas McIntyre
- Occupation : Student - Still looking for a "real" job.
- Favorite Far Side : Tarzan Introducing Himself to Jane.
- Email Address : richarm@a.cs.okstate.edu
-