Override function in nested class

Karl noemailyet at domain.com
Mon Aug 6 00:20:48 PDT 2007


Karl Wrote:

> Hi,
> 
> How to: Override a function in a static nested class?
> 
> Example:
> 
> class myclass1
> {
> 
> }

Sorry, i pressed the tab and enter to indent a line and posted, here's the example:

class myclass1
{
        static class myclass2
        {
                  void hello(){}
         }
}

how do i override the hello function from a class inherited from myclass1?

thanks


More information about the Digitalmars-d-learn mailing list