Exemple #1
0
 public TemporaryProduct(int productID, string productName, scroll scrollID, int productVolume,
                         string productProducer, int productPrice, DateTime StartSelling, DateTime EndSelling) :
     base(productID, productName, scrollID, productVolume, productPrice, productProducer)
 {
     this.StartSelling = StartSelling;
     this.EndSelling   = EndSelling;
 }
Exemple #2
0
        static void Main(string[] args)
        {
            scroll  scroll1  = new scroll(1, "пиво", 10);
            product product1 = new product(1, "Балтика", scroll1, 0.5, 70, "Балтика продакшн");

            product1.info();
            Console.ReadLine();
        }
Exemple #3
0
 public product(int productID, string productName, scroll scrollID, double productVolume, int productPrice, string productProducer)
 {
     this.productID       = productID;
     this.productName     = productName;
     this.scrollID        = scrollID;
     this.productVolume   = productVolume;
     this.productPrice    = productPrice;
     this.productProducer = productProducer;
 }
Exemple #4
0
        static void Main(string[] args)
        {
            DateTime Start   = new DateTime(2018, 1, 20);
            DateTime End     = new DateTime(2018, 2, 20);
            scroll   scroll1 = new scroll(1, "пиво", 10);
            //product product1 = new product(1, "Балтика", scroll1, 0.5, 70, "Балтика продакшн");
            //product1.info();
            List <TemporaryScroll> listscroll = new List <TemporaryScroll>();

            listscroll.Add(new TemporaryScrollt(2, "Коньяк", 40, Start, End));
            foreach (TemporaryScroll ff in listscroll)
            {
                ff.info();
                Console.WriteLine();
            }
            Console.ReadLine();
        }