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,dbcfe2b0a74da57e X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!d55g2000hsg.googlegroups.com!not-for-mail From: Maciej Sobczak Newsgroups: comp.lang.ada Subject: Re: Inherited Methods and such Date: Mon, 17 Sep 2007 13:22:14 -0700 Organization: http://groups.google.com Message-ID: <1190060534.958182.51800@d55g2000hsg.googlegroups.com> References: <1190039166.449906.15070@g4g2000hsf.googlegroups.com> <1190041908.492024.263110@19g2000hsx.googlegroups.com> NNTP-Posting-Host: 85.3.88.166 Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: posting.google.com 1190060535 1522 127.0.0.1 (17 Sep 2007 20:22:15 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 17 Sep 2007 20:22:15 +0000 (UTC) In-Reply-To: <1190041908.492024.263110@19g2000hsx.googlegroups.com> User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: d55g2000hsg.googlegroups.com; posting-host=85.3.88.166; posting-account=ps2QrAMAAAA6_jCuRt2JEIpn5Otqf_w0 Xref: g2news2.google.com comp.lang.ada:1998 Date: 2007-09-17T13:22:14-07:00 List-Id: On 17 Wrz, 17:11, Ludovic Brenta wrote: > If you come from C++: > > class -> tagged type Not really. Tagged type is analogous to a polymorphic class in C++ (a class that has at least one virtual function). > * -> class You mean pointer or reference to the base class in C++ is analogous to the class-wide type in Ada (roughly - in C++ they are have always referential, not copy semantics). > namespace -> package (very roughly) OK (very roughly). :-) > virtual method -> primitive operation OK. > static method -> class-wide operation Not really. Class-wide operation in Ada is similar to non-virtual function in C++. > In Ada, a "class" is the set consisting of a tagged type and all types > derived from it. -- Maciej Sobczak http://www.msobczak.com/