From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,7137ee7358078d09 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!m73g2000cwd.googlegroups.com!not-for-mail From: richard.charts@gmail.com Newsgroups: comp.lang.ada Subject: Re: Basic Explaination of OO in Ada Date: 19 Sep 2006 06:56:25 -0700 Organization: http://groups.google.com Message-ID: <1158674185.887102.205150@m73g2000cwd.googlegroups.com> References: <1158593087.194781.250030@e3g2000cwe.googlegroups.com> <1158636734.971377.112550@d34g2000cwd.googlegroups.com> NNTP-Posting-Host: 12.129.98.129 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1158674191 7037 127.0.0.1 (19 Sep 2006 13:56:31 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 19 Sep 2006 13:56:31 +0000 (UTC) In-Reply-To: <1158636734.971377.112550@d34g2000cwd.googlegroups.com> User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.6) Gecko/20060728 Firefox/1.5.0.6,gzip(gfe),gzip(gfe) X-HTTP-Via: 1.1 S1PS Complaints-To: groups-abuse@google.com Injection-Info: m73g2000cwd.googlegroups.com; posting-host=12.129.98.129; posting-account=ydtQyAwAAAC1xxzVoGOYbHSW6zGrdJDV Xref: g2news2.google.com comp.lang.ada:6665 Date: 2006-09-19T06:56:25-07:00 List-Id: Lucretia wrote: > > You should realize that what you're asking about is not OO, but > > programming by extension. Because "OO" became a synonym for "good", and > > [snip] > > > object orientation. Programming by extension is an implementation > > technique. Object orientation is a design attribute and may be > > This is very true and a lot of programmers don't realise they can > develop in an OO way in asm or C (or any procedural language). > > Luke. So basically, OO is the principles: polymorph, encaps, inheritance. And Programming by extension is the way to do it in Ada, as class something: { } would be in C++? One thing I'm still confused on is the use of access objects versus/with the use of object'class. I understand using object'class for polymorphism and inheritance, but can access objects be used in a similar manner? As for the use of the python program. It was just something I wrote a week ago for a group I help with. Since it was still fresh in my head, it was the easiest thing to try to convert.