Constructor
A constructor is a function that initializes a newly allocated object.
Related concepts: ClassObjectMethod
Closest Wikipedia entry: Constructor (object-oriented programming)
Misconceptions about Constructor17 documented Misconceptions
Check YourselfAllClassesHaveDefaultConstructor — Java
All classes automatically get a no-argument constructorCannotChainMemberToConstructor — Java
Method calls or field accesses cannot be chained to a constructor invocationConstructorAllocates — Java
The constructor allocates the objectConstructorParameterIsField — Java
Formal constructor parameters are equivalent to instance variablesConstructorReturnsObject — Java
Constructors need to return objectsConstructorWithoutNew — Java
One can write the constructor name, without new, to instantiate a classImmutableRequiresFinalParameters — Java
Immutable classes need final constructor/method parametersMustInitializeFieldInConstructor — Java
Constructors must assign values to all fieldsNoEmptyConstructor — Java
A constructor must do somethingNoInsideMethodCallInConstructor — Java
It is foirbidden to call other methods on the same object while inside its constructorObjectsMustBeNamed — Java
A variable is needed to instantiate an objectThisInConstructorIsNull — Java
In a constructor, this is nullCannotChainAttributeToObjectInstantiation — Python
Method calls, and attribute accesses in general, cannot be chained to a constructor invocation.InitCreates — Python
__init__ must create a new objectInitReturnsObject — Python
__init__ needs to return an objectNoEmptyInit — Python
__init__ must do somethingObjectsMustBeNamed — Python
A variable is needed to instantiate an object