Assertion: class's function | /r/Synonym | constructor
Facets:
Source sentences:
text: In order to avoid that, a class can include a special function called its constructor, which is automatically called whenever a new object of this class is created, allowing the class to initialize member variables or allocate storage.
text: These members include variables (including other structures and classes), functions (specific identifiers or overloaded operators) known as methods, constructors and destructors.