Article View: borland.public.jbuilder.java.api
Article #3095Why are methods final?
From: bill
Date: Fri, 01 May 1998 00:00
Date: Fri, 01 May 1998 00:00
11 lines
791 bytes
791 bytes
Hi Foks, I wanted to subclass java.util.Vector so that my vector would throw events when an element was inserted or deleted. Not easily done. The insert and remove methods in Vector are final and cant be overridden. I'll find a workaround, but why are the above methods defined as final ? Thanks, Bill.
Technical Details
Message-ID:
<3549CE7D.1BA40EB4@xsite.net>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1089d0,bf5509b9ebccfe15,start X-Google-Attributes: gid1089d0,public From: bill <bwinspur@xsite.net> Subject: Why are methods final? Date: 1998/05/01 Message-ID: <3549CE7D.1BA40EB4@xsite.net> X-Deja-AN: 349301706 Content-Transfer-Encoding: 7bit Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Organization: Another Netscape Collabra Server User Newsgroups: borland.public.jbuilder.java.api