Opt-out polymorphism?

Stewart Gordon smjg_1998 at yahoo.com
Fri Feb 18 09:56:42 PST 2011


On 13/02/2011 21:34, Sean Eskapp wrote:
> Is there a way to specify that a function is nonvirtual, but can still be
> "overriden" in base classes? e.g.

Then you're not overriding at all.  You're just declaring a function in the derived class 
that happens to have the same name.

As such, it seems to me to have little use besides writing confusing code.

Stewart.


More information about the Digitalmars-d-learn mailing list