From -1208740984227491284
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,8c9f1307b83ac2db
X-Google-Attributes: gidf78e5,public
From: Mark Wilden <Mark@mwilden.com>
Subject: Re: Q: virtual functions not overridable anymore?
Date: 1997/09/21
Message-ID: <34252352.259F@mWilden.com>#1/1
X-Deja-AN: 274329693
References: <34213D4E.41C6@wizard.net> <EGrqMH.LwJ@research.att.com> <60224j$h9r@bgtnsc03.worldnet.att.net>
X-Original-Date: Sun, 21 Sep 1997 06:38:26 -0700
Organization: The Mark Wilden Company
X-Auth: PGPMoose V1.1 PGP comp.std.c++ iQBFAgUBNCVyhOEDnX0m9pzZAQHDeQF+J7q1smLMrInEILvcxEfDevywItIg7VGu fk5tf6pVu0cTgb1oCw/tUuob7EBxokXX =UWQm
Newsgroups: comp.std.c++


Cristian Georgescu wrote:
> 
> I thought that you can override *only* virtual functions. Non-virtual
> functions are either hidden (by redefinition with same signature in derived
> class) or overloaded (different signature). Am I right?

You may be aware of this, but just to be clear, a function with the same
name but a different signature in a derived class hides the function
with the same name in the base class, and does not overload it. You can
only overload functions in the same scope.
---
[ comp.std.c++ is moderated.  To submit articles: try just posting with      ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu         ]
[ FAQ:      http://reality.sgi.com/employees/austern_mti/std-c++/faq.html    ]
[ Policy:   http://reality.sgi.com/employees/austern_mti/std-c++/policy.html ]
[ Comments? mailto:std-c++-request@ncar.ucar.edu                             ]



