interface CanCreate
Interface CanCreate
specifies that a class has a default create()
method, one with no arguments. Classes that implement this interface can be created even if they are only represented as a type parameter. Interfaces specifying arbitrarily complex create
methods are legal, but this interface is so universally valuable that it is included in the standard library.
Modifiers | Return Types | Method and Description |
---|---|---|
public |
() |
create() Default |
public create() => ()
Default create()
method.