Post
by Descolada » 28 Jan 2023, 05:35
@SandyClams, to make this implication, the user has to know (or educate themselves) that:
1) Class methods and properties are stored in a Prototype object
2) Non-static properties are not shared between class instances (that is, they are copied), yet non-static methods refer to the same underlying function
3) The class method static variable is not, for example, stored in the "this" variable as a special case, or there isn't some other workaround implemented
I'm not saying one can't imply it, rather it might save time and effort for people who are not intimately knowledgeable with classes.