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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,56131a5c3acc678e X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-12-07 12:25:05 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!in.100proofnews.com!in.100proofnews.com!cycny01.gnilink.net!cyclone1.gnilink.net!wn12feed!worldnet.att.net!bgtnsc05-news.ops.worldnet.att.net.POSTED!not-for-mail Newsgroups: comp.lang.ada Subject: Re: Question about OO programming in Ada From: James Rogers References: <5JmdnUF_9o_ABE-iRTvUrg@rapidnet.com> <1273941.m4G3ZzughP@linux1.krischik.com> Message-ID: User-Agent: Xnews/5.04.25 Date: Sun, 07 Dec 2003 20:25:04 GMT NNTP-Posting-Host: 12.73.182.106 X-Complaints-To: abuse@worldnet.att.net X-Trace: bgtnsc05-news.ops.worldnet.att.net 1070828704 12.73.182.106 (Sun, 07 Dec 2003 20:25:04 GMT) NNTP-Posting-Date: Sun, 07 Dec 2003 20:25:04 GMT Organization: AT&T Worldnet Xref: archiver1.google.com comp.lang.ada:3209 Date: 2003-12-07T20:25:04+00:00 List-Id: Martin Krischik wrote in news:1273941.m4G3ZzughP@linux1.krischik.com: > James Rogers wrote: > >> Hyman Rosen wrote in >> news:l0BAb.601$kz2.183@nwrdny01.gnilink.net: >> >>> I don't think you do understand. For one, there is no "overhead" >>> whatsoever in using a class for encapsulation. And in C++ a type may >>> be the equivalent of tagged or not tagged, as you choose. >> >> Do you mean to say there is an equivalent of an un-tagged type for >> C++ classes? Is this also equivalent to a Java "final" class? > > Yes. However there is no keyword for it - just a rule: don't add the > "virtual" keyword. I understood "virtual" is a modifier for C++ functions. A C++ class with non-virtual functions can still be extended with new data members, or even with new virtual function members. Please correct me if I am wrong. Jim Rogers