4 ms·
Mostly because it's generally recognized that inheritance was a bad idea. "Prefer composition and interfaces over inheritance" and such. Also because mutable o
by kyllo 7y ago
Mostly because it's generally recognized that inheritance was a bad idea. "Prefer composition and interfaces over inheritance" and such.
Also because mutable object state is problematic--it makes a large system harder to reason about and certan types of bugs more likely, and makes thread safety very difficult.