2 ms·
Primarily for adding properties, and making objects that can be inherited from (unlike primitives). This is a great answer with even more cases: https://stacko
by greggturkington 6y ago
Primarily for adding properties, and making objects that can be inherited from (unlike primitives). This is a great answer with even more cases:
https://stackoverflow.com/a/39113022/110241 https://stackoverflow.com/a/39113022/110241
- mgerullis 6y ago> Primarily for adding properties I personally would never expect a property which is treated as a string. That's what POJOs are for, but that is just opinion I guess. still weird they let you do this. > and making objects that can be inherited from (unlike primitives). I mean the SO gives an example of how to do it but I would still love to see some place where this is needed or even pragmatic to any degree.