-
Notifications
You must be signed in to change notification settings - Fork 0
/
FoodSupply.cs
28 lines (24 loc) · 880 Bytes
/
FoodSupply.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
using System;
namespace ManualFourDz2
{
internal class FoodSupply : Goods
{
protected int Calorific;
public FoodSupply(int id, string Article, string Manufacturer, string Country, int PriceBatch,
double WeightBatch, int QuantityOfGoods, string ProductTypeBatch, int Calorific, string Status)
: base(id, Article, Manufacturer, Country, PriceBatch, WeightBatch, QuantityOfGoods, ProductTypeBatch, Status)
{
this.Calorific = Calorific;
}
public new void HeaderTablePrint()
{
base.HeaderTablePrint();
Console.Write($" {"Пищевая ценность в 100г",-20} |\n");
}
public new void Print()
{
base.Print();
Console.Write($" {Calorific,-23} |\n");
}
}
}