Limiter le nombre de sous-classes

abstract class Base {

    private Base() {}

    public static class Class1 extends Base { ... }
    public static class Class2 extends Base { ... }

}

 

About fifcan

Speak Your Mind

Tell us what you're thinking...
and oh, if you want a pic to show with your comment, go get a gravatar!