Content deleted Content added
No edit summary |
No edit summary |
||
Line 10:
In some [[object oriented]] [[programming language]]s, [[Constructor (computer science)|constructors]] can also be overloaded. In languages that require constructors to have the same name as the declaring [[class (computer science)|class]], constructor overloading allows multiple ways of creating an object. The constructors must have different parameter types and numbers of [[parameter (computer science)|parameters]].
For example, the
<source lang="java">
|