Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            Product2001 product1 = new Product2001(); //Usage1

            product1.Id           = 1;
            product1.CategoryId   = 2;
            product1.ProductName  = "Masa";
            product1.UnitPrice    = 500;
            product1.UnitsInStock = 4;

            Product2001 product2 = new Product2001 {
                Id = 2, CategoryId = 5, UnitsInStock = 5, ProductName = "Kalem", UnitPrice = 35
            };

            //pascalCase    //camelCase
            ProductManager productManager = new ProductManager();  //Usage2

            productManager.Add(product1);
            Console.WriteLine(product1.ProductName);

            //productManager.Topla2(3,6);

            //int toplamsonuc = productManager.Topla(3, 6);

            //Console.WriteLine("Ana Sonuc: "+ toplamsonuc * 2);

            Console.ReadKey();
        }
Ejemplo n.º 2
0
 public void Update(Product2001 product)
 {
     Console.WriteLine(product.ProductName + "güncellendi.");
 }
Ejemplo n.º 3
0
        //Ürünle ilgili operasyonlar Create-read-update-delete  CRUD = CREATE-READ-UPDATE-DELETE

        public void Add(Product2001 product)   // ekleme
        {
            Console.WriteLine(product.ProductName + "eklendi.");
        }