From: Benjamin Sobotta <mayday@gmx.net>
To: Shriramana Sharma <samjnaa@gmail.com>
Cc: Linux C Programming List <linux-c-programming@vger.kernel.org>
Subject: Re: Virtual functions and destructors
Date: Thu, 23 Mar 2006 23:00:33 +0100 [thread overview]
Message-ID: <200603232300.33759.mayday@gmx.net> (raw)
In-Reply-To: <200603230732.21532.samjnaa@gmail.com>
On Thursday 23 March 2006 03:02, Shriramana Sharma wrote:
> 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*.
Sorry I must have read wrong. Nevertheless even if you prefer to say override
you can still override a function without using virtual. Just adjust the type
of the pointer to the class of which you want to execute the member function.
Ben
>
> > 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.
next prev parent reply other threads:[~2006-03-23 22:00 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-19 15:20 Virtual functions and destructors Shriramana Sharma
2006-03-19 17:38 ` Steve Graegert
2006-03-22 22:27 ` Benjamin Sobotta
2006-03-23 2:02 ` Shriramana Sharma
2006-03-23 22:00 ` Benjamin Sobotta [this message]
2006-03-24 1:07 ` Glynn Clements
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200603232300.33759.mayday@gmx.net \
--to=mayday@gmx.net \
--cc=linux-c-programming@vger.kernel.org \
--cc=samjnaa@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.