Re: Java or C++?



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]
.



Relevant Pages

  • Re: Question about column
    ... Don't, whatever you do, do this direct at the content database. ... > chose when I published. ... So I clicked the 'Modify setting and columns", ... > How do I remove some columns that I chose when I published template in the ...
    (microsoft.public.sharepoint.windowsservices)
  • Question about column
    ... When you publish some document template such as infopath form in document ... I couldn't find any columns in Columns section that I chose when I ... How do I remove some columns that I chose when I published template in the ...
    (microsoft.public.sharepoint.windowsservices)
  • Re: Having trouble setting right margins in Word
    ... I found the 1033 file and opened the Normal template. ... I then chose the new template in the left box, ... I then chose the formatting that I wanted from the new template and copied ...
    (microsoft.public.word.docmanagement)
  • Re: Java or C++?
    ... > Phlip wrote: ... >> methods to specialize a generic template. ... you can't supply template method definitions in an interface. ...
    (comp.programming)
  • Not Book.xlt
    ... Can you add a new workbook in Excel and not have it based on Book.xlt? ... Or can you have a subroutine where you chose the template to base a new ...
    (microsoft.public.excel.programming)