From 2907658870244137276
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,8c9f1307b83ac2db
X-Google-Attributes: gidf78e5,public
From: Colin Rafferty <craffert@ml.com>
Subject: Re: Q: virtual functions not overridable anymore?
Date: 1997/09/10
Message-ID: <ocr3endgp95.fsf@ml.com>#1/1
X-Deja-AN: 271427584
References: <01bcb109$1e790180$433574cf@worldnet.worldnet.att.net> <3404A0AE.6F7E@Eng.Sun.COM> <5uimip$l56@bgtnsc03.worldnet.att.net> <340D93AA.643A@Eng.Sun.COM> <01bcb951$ea80a440$909c389d@mtayler> <ocr4t7zlk2o.fsf@ml.com> <5v1i5j$qrg$1@mail.pl.unisys.com>
X-Original-Date: 10 Sep 1997 11:30:46 -0400
X-Face: ByE+UMAp1klWR3?\RNGx(A-~Ri!YT%C6M!sxoJL+.;9`Q/|+dj7[KR>gGMyV.2qZeot0NI`4\MA^_Qg`F9=+Ox&zaE?Y9dV%F~Xzf';Zyk2Aobs.uu^Ey0_C6^~q';G#$HkA!ZAHXPpG-"*|Dd*Z4U$4y{{aI0c%75}i~Of(jxYtI[uIpYF<*Zoe|\*/ufb
Originator: austern@isolde.mti.sgi.com
X-Y-Zippy: Of course, you UNDERSTAND about the PLAIDS in the SPIN CYCLE --
Organization: -
X-Auth: PGPMoose V1.1 PGP comp.std.c++ iQBVAwUBNBbvkky4NqrwXLNJAQE/hQH/U2sWTRu3B74DPKJfd2qGNMvnoyqr6OGJ F0o0gg7njrLB76tKx0ZJagtCOv/djLDJqGfVdC+XbSEmFlV4165aHg== =VRRu
Newsgroups: comp.std.c++


In article <5v1i5j$qrg$1@mail.pl.unisys.com>, Brett writes:
> In article <ocr4t7zlk2o.fsf@ml.com>, Colin Rafferty <craffert@ml.com> wrote:

>> Steve Clamage gave a lucid example of why this is a bad idea.  I have
>> yet to see an example of why this is useful.  I cannot imagine a
>> real-life use for `final', other than due to a poorly designed base
>> class.

> Have you taken a look at the Java 1.02 API?  I think the number of virutal 
> functions that are eventually defined final in a derived class number in the 
> hundreds.

This is not the only deficiency of Java.

> Personally, I think that a function should almost never be defined final 
> because it cancels out much of the usefulness of object-oriented code design.  
> I want to be able to extend and modify my classes as much as possible.

That is exactly my point.  It is fascistic for a subclass designer to
override the design of the base class designer.

-- 
Colin
---
[ comp.std.c++ is moderated.  To submit articles: Try just posting with your 
                newsreader.  If that fails, use mailto:std-c++@ncar.ucar.edu
  comp.std.c++ FAQ: http://reality.sgi.com/austern/std-c++/faq.html
  Moderation policy: http://reality.sgi.com/austern/std-c++/policy.html
  Comments? mailto:std-c++-request@ncar.ucar.edu 
]



