public HomeController(ILogger <HomeController> logger) { _logger = logger; ICake ChocCake = new ChocolateCake(); ICake BrownieCake = new BrownieCake(); Console.WriteLine(ChocCake.GetCake()); Console.WriteLine(BrownieCake.GetCake()); }
static void Main(string[] args) { var chocolateCake = new ChocolateCake(); chocolateCake.Make(); }