Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #25714

Re: Why “new”?

Date 2011-02-05 08:31 +0100
From jlp <jlp@jlp.com>
Newsgroups comp.lang.java.programmer
Subject Re: Why “new”?
References (4 earlier) <iiiaia$5t9$1@lust.ihug.co.nz> <iiicja$epf$1@news.eternal-september.org> <iiihfu$9pf$1@lust.ihug.co.nz> <iiikcq$rp2$1@news.albasani.net> <iiirln$fh3$3@lust.ihug.co.nz>
Message-ID <4d4cfcce$0$32450$ba4acef3@reader.news.orange.fr> (permalink)
Organization les newsgroups par Orange

Show all headers | View raw


Le 05/02/2011 07:45, Lawrence D'Oliveiro a écrit :
> In message<iiikcq$rp2$1@news.albasani.net>, Lew wrote:
>
>> Reference to the C++ spec sheds absolutely no light whatsoever on Java.
>
> That’s where the term “virtual” comes from.
>
>>> Like I said, in Java, effectively all methods are virtual.
>>
>> Wrong.  Private and static methods are not virtual.
>
> Without understanding the C++ spec, you cannot understand what “virtual”
> means.
>
from wikipedia : http://en.wikipedia.org/wiki/Virtual_function
so private methods can be virtual

In Java, all non-static methods are by default "virtual functions." Only 
methods marked with the keyword final, which cannot be overridden, along 
with private methods, which are not inherited, are non-virtual.

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Re: Why “new”? "Mike Schilling" <mscottschilling@hotmail.com> - 2011-02-04 18:27 -0800
  Re: Why “new”? Lars Enderin <lars.enderin@telia.com> - 2011-02-05 18:04 +0100
  Re: Why “new”? "Mike Schilling" <mscottschilling@hotmail.com> - 2011-02-05 02:49 -0800
    Re: Why “new”? Lew <noone@lewscanon.com> - 2011-02-05 09:14 -0500
  Re: Why “new”? Lawrence D'Oliveiro <ldo@geek-central.gen.new_zealand> - 2011-02-05 20:42 +1300
    Re: Why “new”? Arne Vajhøj <arne@vajhoej.dk> - 2011-02-06 20:46 -0500
    Re: Why “new”? Joshua Cranmer <Pidgeot18@verizon.invalid> - 2011-02-05 10:38 -0500
    Re: Why “new”? Lew <noone@lewscanon.com> - 2011-02-05 09:13 -0500
  Re: Why “new”? jlp <jlp@jlp.com> - 2011-02-05 08:31 +0100
    Re: Why “new”? Lew <noone@lewscanon.com> - 2011-02-05 09:08 -0500
  Re: Why “new”? Arne Vajhøj <arne@vajhoej.dk> - 2011-02-06 20:44 -0500
  Re: Why “new”? Lew <noone@lewscanon.com> - 2011-02-05 09:07 -0500
  Re: Why “new”? Lawrence D'Oliveiro <ldo@geek-central.gen.new_zealand> - 2011-02-05 16:51 +1300
    Re: Why “new”? Joshua Cranmer <Pidgeot18@verizon.invalid> - 2011-02-04 23:06 -0500
    Re: Why “new”? Lawrence D'Oliveiro <ldo@geek-central.gen.new_zealand> - 2011-02-05 19:45 +1300
      Re: Why “new”? Joshua Cranmer <Pidgeot18@verizon.invalid> - 2011-02-05 10:32 -0500
    Re: Why “new”? Lew <noone@lewscanon.com> - 2011-02-04 23:40 -0500
    Re: Why “new”? Arne Vajhøj <arne@vajhoej.dk> - 2011-02-07 19:15 -0500
  Re: Why “new”? Kevin McMurtrie <mcmurtrie@pixelmemory.us> - 2011-02-04 21:31 -0800
    Re: Why “new”? Lew <noone@lewscanon.com> - 2011-02-05 01:25 -0500

csiph-web