Last active
November 9, 2022 22:56
-
-
Save hsynkrcf/9e0cf390582781254cc23c182a3301e2 to your computer and use it in GitHub Desktop.
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()); | |
Console.ReadLine(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment