4 ms·
C# copied Java's mistake in this respect. You can pass an Apple[] to something accepting a Fruit[] and get a runtime exception when you try to add a Banana to
by snprbob86 15y ago
C# copied Java's mistake in this respect.
You can pass an Apple[] to something accepting a Fruit[] and get a runtime exception when you try to add a Banana to the Fruit[].