Why the hell it doesnt work?
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; namespace Lab1.Step1 { class Dog { private const int VaccinationDuration = 1; public string Name { get; set; } public int ChipId { get; set; } public double Weight { get; set; } public int Age { get; set; } public string Breed { get; set; } public string Owner { get; set; } public string Phone { get; set; } public DateTime VaccinationDate { get; set; } public bool Agressive { get; set; } public Dog() { } public Dog(string name, int chipId, double weight, int age, string breed, string owner, string phone, DateTime vaccinationDate, bool agressive) { Name = name; ChipId = chipId; Weight = weight; Age = age; Breed = breed; Owner = owner; Phone = phone; VaccinationDate = vaccinationDate; Agressive = agressive; } public bool IsVaccinationExpired() { return VaccinationDate.AddYears(VaccinationDuration).CompareTo(DateTime.Now) < 0; } } static void Main(string[] args) { Dog dog = new Dog("Bimas", 1234, 24, 5, "taksas", "Antanas Kavaliauskas," + "+37061485555", new DateTime(2018, 7, 4), true); Console.WriteLine("{0, -10} {1, 5:d} {2, 5:f} {3, 5:d} {4, -16} {5, -12}" + "{6, 8:Y} {7}", dog.Name, dog.ChipId, dog.Weight, dog.Age, dog.Owner, dog.Phone, dog.VaccinationDate, dog.Agressive); Console.Read(); } }