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.9 required=5.0 tests=BAYES_00 autolearn=ham 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!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!newsfeed.freenet.de!ecngs!feeder2.ecngs.de!npeer.de.kpn-eurorings.net!newsfeed.arcor.de!newsspool4.arcor-online.net!news.arcor.de.POSTED!not-for-mail Newsgroups: comp.lang.ada Subject: Re: Basic Explaination of OO in Ada From: Georg Bauhaus In-Reply-To: <1158593087.194781.250030@e3g2000cwe.googlegroups.com> References: <1158593087.194781.250030@e3g2000cwe.googlegroups.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit Organization: # Message-ID: <1158597809.7364.14.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Date: Mon, 18 Sep 2006 18:43:29 +0200 NNTP-Posting-Date: 18 Sep 2006 18:38:05 CEST NNTP-Posting-Host: 6f7beb02.newsspool3.arcor-online.net X-Trace: DXC=Cc09OKJTf4K@Y=h<_c3PkHMcF=Q^Z^V3H4Fo<]lROoRA4nDHegD_]RE]BA0FG=;j5ETiQOITnENoBFU`4:K;4eRG5hAkEHcjW^GC On Mon, 2006-09-18 at 08:24 -0700, richard.charts@gmail.com wrote: > 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? There is something like a class in C++ or Java, but not exactly the same thing. (In fact, writing for the JVM in Ada is pretty straightforward.) One difference is that you don't declare the "class"'s operations within the class, but right next to it, in the containing package. Another difference is that you won't be using pointers of references that much, because dispatching works mostly without them. However, you will notice that there is a 'Class attribute in Ada. After you have some clarifying examples, you might want to look at it. A good book by John English is available on-line, see http://www.it.bton.ac.uk/staff/je/adacraft/