Update improvements.md

This commit is contained in:
Mark J Price 2023-10-12 07:33:15 +01:00
parent 4d4637a917
commit 1fe883005b

View file

@ -692,7 +692,7 @@ human.Lose(); // Calls the public implicit implementation.
((IGamePlayer)human).Lose(); // Calls the explicit implementation.
// Outputs: Implementation for losing a game.
IGamePlayer player = human as IGamePlayer;
IGamePlayer player = human;
player.Lose(); // Calls the explicit implementation.
// Outputs: Implementation for losing a game.