Constructor (object-oriented programming): Difference between revisions

Content deleted Content added
Line 93:
* Constructors cannot be directly invoked (the keyword “<code>new</code>” invokes them).
* Constructors cannot be ''synchronized'', ''final'', ''abstract'', ''native'', or ''static''.
* itIt should not contain modifiers
 
Java constructors perform the following tasks in the following order: