Created
October 7, 2020 09:47
-
-
Save carmeleve/6790378f27e0a55ed53097b6f400133e 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
using System; | |
using System.Collections.Generic; | |
using System.Text; | |
namespace DesignPatterns.Adapter | |
{ | |
public static class ChildCreator | |
{ | |
public static IChild CreateChild(IMammal mammal) | |
{ | |
return mammal.GiveBirth(); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment