4 ms·
Methods for a type have to be declared in the same package as the type.
by ambrice 13y ago
Methods for a type have to be declared in the same package as the type.
- wonderzombie 13y agoFortunately you can embed other people's types within your own type, thereby extending it.
- ambrice 13y agoSure. But that's not monkey patching, that's inheritance.
- Fistandantilus 13y agoI'd say it's closer to subtyping.