note 40217 deleted from ref.overload by sobak
| From: | sobak@php.net | Date: | Tue, 22 Nov 2016 03:49:15 +0000 |
| Subject: | note 40217 deleted from ref.overload by sobak | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-207447@lists.php.net to get a copy of this message | ||
Note Submitter: upphpdoc at upcd dot de
----
While this is a nice Feature it has nothing to do with Overloading as it is known in other
OO-Languages.
What this feature does is allowing the dynamic addition of instance variables as e.g in Python.
Overloading means defining several methods with the same name in a single class. Which method will
be called depends on the number and type of arguments specified. With dynamic and weak typed
languages (like PHP) this can of course not work.