mirror of
https://github.com/markjprice/cs11dotnet7.git
synced 2026-01-07 00:29:58 +01:00
Update improvements.md
This commit is contained in:
parent
4d4637a917
commit
1fe883005b
|
|
@ -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.
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue