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=1.0 required=5.0 tests=BAYES_20,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,7137ee7358078d09,start X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!e3g2000cwe.googlegroups.com!not-for-mail From: richard.charts@gmail.com Newsgroups: comp.lang.ada Subject: Basic Explaination of OO in Ada Date: 18 Sep 2006 08:24:47 -0700 Organization: http://groups.google.com Message-ID: <1158593087.194781.250030@e3g2000cwe.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 1158593091 26489 127.0.0.1 (18 Sep 2006 15:24:51 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 18 Sep 2006 15:24:51 +0000 (UTC) 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: e3g2000cwe.googlegroups.com; posting-host=12.129.98.129; posting-account=ydtQyAwAAAC1xxzVoGOYbHSW6zGrdJDV Xref: g2news2.google.com comp.lang.ada:6633 Date: 2006-09-18T08:24:47-07:00 List-Id: I'm new to Ada, having to learn it for work, and I am beginning to understand the language, I think. However, coming from C (and family) and Java and other "modern" languages, I can't seem to wrap my head around Ada's OO methods. Is it that there is simply nothing like a class in C++ or Java? As a learning exercise, I'm trying to convert a simple Python program to Ada. The basics of the program were that it took in data about a Person object(or Student or Advisor) and stored it into array for manipulation. At first, I kept trying to convert almost line for line to Ada. But I couldn't build the classes in the same way. Is the correct way to think in Ada, that in a package, there is some record "object" and also a number of subprograms that can interact with/on that record? Thanks.