Article View: borland.public.cppbuilder.oodesign
Article #137Re: OOP Concepts
From: Joanna Carter
Date: Fri, 25 May 2001 07:44
Date: Fri, 25 May 2001 07:44
36 lines
2362 bytes
2362 bytes
"Digby Millikan" <digbym@one.net.au> wrote in message news:3b0db8b0$1_2@dnews... > Though one question you may be able to tell me I understand classes are > objects, but am I using correct terminology if I call a structure an object. > What other kinds of Objects are besides classes, or is it all classes. Digby See if this helps to clear up some terminology... A Class is like a cookie cutter; it is the pattern from which you cut out cookies (Objects). You design a Class by defining what properties and methods you want to see in each of the Objects you will create from that Class. An Object is a particular instance of a Class, e.g. 'Joe Bloggs' is an object of the class TPerson, 'ABC Mining' is an instance of the class Company, etc. A Structure is not an Object, but more correctly an Object is a Structure, in that it is essentially a record that can contain methods as well as properties. You can also use a Class without an Object, if you declare Class Variables or Class Methods; these provide what is called Singleton behaviour, in that they act on the one single 'cookie cutter' rather than each individual 'cookie'. Hope this helps a bit. -- Joanna Carter Remove .Hat to reply
Technical Details
Message-ID:
<3b0e0d27$1_2@dnews>Path:
arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!news.maxwell.syr.edu!colt.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnewsReferences:
<3b021472$1_1@dnews> <3b0db8b0$1_2@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: feb48,f1d20db74e5bd0b5 X-Google-Attributes: gidfeb48,public X-Google-Thread: 10db1e,f1d20db74e5bd0b5 X-Google-Attributes: gid10db1e,public X-Google-Thread: 114c7b,f1d20db74e5bd0b5 X-Google-Attributes: gid114c7b,public X-Google-ArrivalTime: 2001-05-25 00:44:04 PST From: "Joanna Carter" <JoannaC_not_for spam@btinternet.com> Newsgroups: borland.public.cppbuilder.oodesign,borland.public.delphi.oodesign,borland.public.kylix.oodesign References: <3b021472$1_1@dnews> <3b0db8b0$1_2@dnews> Subject: Re: OOP Concepts Date: Fri, 25 May 2001 08:44:29 +0100 Lines: 38 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2919.6700 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 NNTP-Posting-Host: 213.122.170.76 Message-ID: <3b0e0d27$1_2@dnews> X-Trace: dnews 990776615 213.122.170.76 (25 May 2001 00:43:35 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!news.maxwell.syr.edu!colt.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews