Re: when & why to make a class final
- From: Stefan Schulz <terra@xxxxxxxxxxxx>
- Date: Tue, 16 Aug 2005 10:05:49 +0200
On Tue, 16 Aug 2005 09:11:55 +0200, Petterson Mikael wrote:
> Hi,
>
> Can anyone explain when and why to make a class final?
If the class somehow intrinsically is critical to behave exactly the way
you specified, including internals like representation of data and so on,
and subclasses would necessarily break this function. (Like
java.lang.Class)
--
You can't run away forever,
But there's nothing wrong with getting a good head start.
--- Jim Steinman, "Rock and Roll Dreams Come Through"
.
- Follow-Ups:
- Re: when & why to make a class final
- From: Petterson Mikael
- Re: when & why to make a class final
- References:
- when & why to make a class final
- From: Petterson Mikael
- when & why to make a class final
- Prev by Date: when & why to make a class final
- Next by Date: Recreation of JVM
- Previous by thread: when & why to make a class final
- Next by thread: Re: when & why to make a class final
- Index(es):
Relevant Pages
|