Method definition

Tim Gunesh tim.moldazhan at gmail.com
Wed Jul 21 12:08:21 UTC 2021


Is it possible to define methods outside the class in C ++ style? 
Something like this:

```d
class Parent{
    void Print();
}

void Parent.Print(){
    writeln("Hello, D!");
}
```


More information about the Digitalmars-d-learn mailing list