Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.
11.4. Parametrized Constructors for Declared Types Example
For a declared type like the following:
The compiler will implicitly generate 3 constructors: one without parameters, one with the @key fields and one with all fields.
Person() // parameterless constructor Person( String firstName, String lastName ) Person( String firstName, String lastName, int age )
Person() // parameterless constructor
Person( String firstName, String lastName )
Person( String firstName, String lastName, int age )