Path: csiph.com!aioe.org!.POSTED!not-for-mail From: =?UTF-8?Q?Arne_Vajh=c3=b8j?= Newsgroups: comp.lang.java.programmer Subject: Re: When to use dynamic binding over dynamic dispatch? Date: Sun, 8 May 2016 08:23:00 -0400 Organization: Aioe.org NNTP Server Lines: 22 Message-ID: References: NNTP-Posting-Host: ANasIS7Js9OyLQwgloeBLQ.user.gioia.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.0 X-Notice: Filtered by postfilter v. 0.8.2 Xref: csiph.com comp.lang.java.programmer:34264 On 5/8/2016 6:24 AM, Robert Klemme wrote: > On 04.05.2016 03:23, Arne Vajhøj wrote: > >> All methods unless declared static or final are virtual in Java, >> so dynamic dispatch is used all the time. > > Methods declared as "final" are virtual as well. Given that: virtual method = method that can be overridden final method = method that can not be overridden then how can it be? > Methods declared "private" are not. True. Arne