Path: csiph.com!eeepc.pasdenom.info!news.pasdenom.info!news.dougwise.org!nntpfeed.proxad.net!proxad.net!feeder1-1.proxad.net!ecngs!feeder2.ecngs.de!news.linkpendium.com!news.linkpendium.com!newsfeeds.ihug.co.nz!lust.ihug.co.nz!ihug.co.nz!not-for-mail From: Lawrence D'Oliveiro Newsgroups: comp.lang.java.programmer Subject: Re: Why =?UTF-8?B?4oCcbmV34oCdPw==?= Followup-To: comp.lang.java.programmer Date: Sat, 05 Feb 2011 16:51:26 +1300 Organization: Geek Central Lines: 25 Message-ID: References: <4d4ca255$0$23765$14726298@news.sunsite.dk> NNTP-Posting-Host: 118-92-86-70.dsl.dyn.ihug.co.nz Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8Bit X-Trace: lust.ihug.co.nz 1296877887 10031 118.92.86.70 (5 Feb 2011 03:51:27 GMT) X-Complaints-To: abuse@ihug.co.nz NNTP-Posting-Date: Sat, 5 Feb 2011 03:51:27 +0000 (UTC) User-Agent: KNode/4.4.7 Xref: csiph.com comp.lang.java.programmer:25795 In message , Mike Schilling wrote: > "Lawrence D'Oliveiro" wrote in message > news:iiiaia$5t9$1@lust.ihug.co.nz... > >> In message , Mike Schilling >> wrote: >> >>> "Lawrence D'Oliveiro" wrote in >>> message news:iii8s4$4tt$1@lust.ihug.co.nz... >>>> >>>> You already have that confusion, when every method declaration in Java >>>> is effectively virtual, unlike C++. >>> >>> That's not true, you know. >> >> No, I don’t know. Please explain. > > Private methods are not virtual, nor are static methods. Private methods can still be virtual—see pages 189-190 of the C++ spec for an example. And I can’t see any prohibition in section 10.3 (“Virtual functions”) against them being static. Like I said, in Java, effectively all methods are virtual.