From mboxrd@z Thu Jan 1 00:00:00 1970 From: Shriramana Sharma Subject: Re: Virtual functions and destructors Date: Thu, 23 Mar 2006 07:32:21 +0530 Message-ID: <200603230732.21532.samjnaa@gmail.com> References: <200603192050.22014.samjnaa@gmail.com> <6a00c8d50603190938v5852f31bhd1a6dfa7262ef83@mail.gmail.com> <200603222327.41672.mayday@gmx.net> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <200603222327.41672.mayday@gmx.net> Content-Disposition: inline Sender: linux-c-programming-owner@vger.kernel.org List-Id: Content-Type: text/plain; charset="us-ascii" To: Linux C Programming List Thursday, 23 March 2006 03:57 samaye tvayaa likhitam: > I'm not sure if this is right. Functions can always be overloaded. He did not speak of functions being overloaded. He spoke of functions being over-*ridden*. > Further I believe that once a function is declared virtual it always stays > that way. Even if in subsequently derived classes it is not explicitly > declared virtual any longer. Verified this using a grandchild class. -- Tux #395953 resides at http://samvit.org playing with KDE 3.51 on SUSE Linux 10.0 $ date [] CCE +2006-03-23 W12-4 UTC+0530