27 lines
901 B
C#
27 lines
901 B
C#
using System.Text;
|
|
|
|
namespace Warenkorb
|
|
{
|
|
internal class Program
|
|
{
|
|
static void Main(string[] args)
|
|
{
|
|
//Books book1 = new Books(1234, 25.90, "Grimm", "Grimmig", "Grimme Tag");
|
|
//DvDs dvd1 = new DvDs(1235, 30, "Grimm", 120, "de");
|
|
//book1.PrintInfo();
|
|
//Console.WriteLine();
|
|
//dvd1.PrintInfo();
|
|
//Console.WriteLine();
|
|
Console.OutputEncoding = Encoding.UTF8;
|
|
Article a1 = new Books(12345, 25.79, "J.K.Rowlling", "Harry Potsau und das Schwein des Weizen", "Pride day 1970");
|
|
Article a2 = new DvDs(12122, 89.00, "Der lange Lurch", 5, "fr");
|
|
Shoppingcart cart1 = new Shoppingcart();
|
|
|
|
cart1.AddArticle(a1);
|
|
cart1.AddArticle(a2);
|
|
cart1.PrintInfo();
|
|
cart1.PrintTotalPrice();
|
|
|
|
}
|
|
}
|
|
} |