static void Main(string[] args) { Person insan = new Person(); //intialization, insan bir intance yani obje insan.Run(); CustomerService customerService = new CustomerService(); customerService.Add(); customerService.Uptade(); customerService.Delete(); CustomerService customerService1; //customerService1.Add(); var productservice = new ProductService(); productservice.Add(); productservice.Uptade(); productservice.Delete(); //productservice.AddUptadeDelete(); EmployeeService employeeService = new EmployeeService(); //Classes.Students.Student student = new Classes.Students.Student(); Student student = new Student(); student.List(); Customer customer = new Customer(); customer.Name = "Yiğit"; customer.Surname = "Mmc"; customer.City = "Ankara"; customer.Id = 1; customer.SetAge(25); Console.WriteLine("Id: " + customer.Id + "\nName: " + customer.Name + " " + customer.Surname + "\nAge: " + customer.GetAge() + "\nCity: " + customer.City); Console.ReadLine(); }
static void Main(string[] args) { person insan = new person(); // initilalization , insan bir obje insan.run(); CustomService customService = new CustomService(); customService.Add(); customService.Update(); customService.Delete(); CustomService customService1; var ProductService = new ProductService(); ProductService.Add(); ProductService.Update(); ProductService.Delete(); EmployerService employersService = new EmployerService(); Classes.Students.Student student = new Classes.Students.Student(); student.List(); Customer customer = new Customer(); customer.Name = "Naci"; customer.Surname = "Yirik"; customer.SetAge(28); customer.City = "Ankara"; customer.Id = 1; Console.WriteLine("Id: " + customer.Id + "\nName: " + customer.Name + " " + customer.Surname + "\nAge: " + customer.GetAge() + "\nCity: " + customer.City); Console.ReadLine(); }