Re: Java or C++?
- From: Chris Dollin <kers@xxxxxxxxxx>
- Date: Tue, 18 Oct 2005 09:28:36 +0100
Phlip wrote:
> I would chose C++ because it's older, and its tools tend to be faster and
> less crufty. It's easier to get simple in C++ than in Java. For example,
> the best way to do the Abstract Template Pattern is with private virtual
> methods to specialize a generic template. However, Java's architects have
> decreed that "all virtual methods shall be public, because that's good
> Object Oriented Programming".
Erm, I'm not sure what you meant to say, but what you've said is false.
Java virtual (ie non-final non-static) methods need not be public; they
can happily be protected, for example.
Did you mean that /interface/ methods must be public?
[A pet hate: you can't supply template method definitions in an interface.
Bah.]
--
Chris "electric hedgehog" Dollin
Il Principe - Byzantium - Hansa - Antike - King's Progress
Farfalia - Mu - Havoc - Tigris & Euphrates [kartenspiel]
.
- Follow-Ups:
- Re: Java or C++?
- From: Phlip
- Re: Java or C++?
- References:
- Java or C++?
- From: Flaran
- Re: Java or C++?
- From: Phlip
- Java or C++?
- Prev by Date: check this out
- Next by Date: Re: parse math expressions
- Previous by thread: Re: Java or C++?
- Next by thread: Re: Java or C++?
- Index(es):
Relevant Pages
|