Constructor (object-oriented programming): Difference between revisions

Content deleted Content added
short description, comma
Tags: Mobile edit Mobile app edit iOS app edit
DarthKitty (talk | contribs)
Line 483:
</syntaxhighlight>
 
Note that inIn PHP, a class is only allowed to declare a maximum of one constructor method. Static methods, factory classes or optional constructor arguments are some ways to facilitate multiple ways to create objects of a PHP class.
 
=== Perl 5 ===