Created
November 8, 2021 16:57
-
-
Save cch12313/a58fb673b0f922c0914ed6c320246df0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public interface IRacing | |
{ | |
public void Skill(); | |
} | |
public class Toyote: IRacing | |
{ | |
private ISkill _skill; | |
public Toyote() | |
{ | |
_skill = new Turbo(); | |
} | |
public void Skill() | |
{ | |
_skill.Cast(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment