Created
November 10, 2022 00:40
-
-
Save hsynkrcf/ceca59d8036bc33a723dafccfa528382 to your computer and use it in GitHub Desktop.
YES OCP
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
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
PhoneFactory pf1 = new PhoneFactory(); | |
pf1.MakePhone(new Iphone()); | |
PhoneFactory pf2 = new PhoneFactory(); | |
pf2.MakePhone(new Samsung()); | |
PhoneFactory pf3 = new PhoneFactory(); | |
pf3.MakePhone(new Xiaomi()); | |
Console.ReadLine(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment