2 ms·
A "point" would be a value type and you wouldn't use reference equality or inheritance for a value type. But if this were a game you might have a "BigBoss" ins
by wvenable 6y ago
A "point" would be a value type and you wouldn't use reference equality or inheritance for a value type.
But if this were a game you might have a "BigBoss" instance than inherits from "Enemy". If you had one boss, you'd only have one instance of it, and you would use reference equality. If you round-tripped and ended up with 2 instances of the same boss then you're already in trouble.