static class

Andrej Mitrovic andrej.mitrovich at gmail.com
Sun Feb 17 14:46:24 PST 2013


On 2/17/13, Steven Schveighoffer <schveiguy at yahoo.com> wrote:
> A class that can't be instantiated has a private constructor.

An alternative to that is:

final abstract class C
{
    static:
}

You can't derive from it and you can't instantiate it.


More information about the Digitalmars-d-learn mailing list