using Bullet6.Solution2.Models; namespace Bullet6.Solution2 { public class Solution2Service : ISolution2Service { public Task Start() { Console.WriteLine($"{nameof(Solution2Service)} starting"); Entity[] entites = [new Employee() { Name = "Ilias" }, new Manager() { Name = "Maria" }]; foreach (var entity in entites) entity.PrintName(); Console.WriteLine($"{nameof(Solution2Service)} ended"); return Task.CompletedTask; } } }