Does every instance of that class need more memory because it will inherrit its own copy of the method? Or do only instance properties (data) improve memory use.
And is the answer generally speaking the same in PHP and javascript? Or do they differ in how this works?
In PHP, there is only ever one copy of the code (methods) for a class in memory, no matter how many instances there may be.... static attributes also only exist once in memory; but all non-static attributes are in memory for every instance of that class