Home
Random
Nearby
Log in
Settings
Donate Now
If Wikipedia is useful to you, please give today.
About Wikipedia
Disclaimers
Search
Constructor (object-oriented programming): Difference between revisions
Article
Talk
Language
Watch
View history
Edit
Browse history interactively
← Previous edit
Next edit →
Content deleted
Content added
Visual
Wikitext
Revision as of 14:24, 28 February 2022
edit
2001:bb6:2e0b:6a58:f968:decc:1e35:983
(
talk
)
→
PHP
← Previous edit
Revision as of 14:24, 28 February 2022
edit
undo
2001:bb6:2e0b:6a58:f968:decc:1e35:983
(
talk
)
→
PHP
Next edit →
Line 482:
</syntaxhighlight>
Note that in PHP a class is only allowed to declare a maximum of one constructor method. Static methods, factory classes or optional constructor arguments are some
methods
ways
to
allow
facilitate
multiple ways to create objects of a PHP class.
=== Perl 5 ===