public Boek(string Titel, string Auteur, Enum_Taal Taal, Afmeting Afmetingen, int Gewicht, decimal Prijs, string Druk, string ISBN, int MaximumAantal, int MinimumAantal) : base(Titel, Auteur, Taal, Afmetingen, Gewicht, Prijs) { Druk = druk; ISBN = isbn; MaximumAantal = maximumvoorraad; MinimumAantal = minimumvoorraad; }
public Publicatie(string Titel, string Auteur, Enum_Taal Taal, Afmeting Afmetingen, int Gewicht, decimal Prijs) { Titel = titel; Auteur = auteur; Taal = taal; Afmetingen = afmetingen; Gewicht = gewicht; Prijs = prijs; }
public Publicatie(string _Titel, string _Auteur, Enum_Taal _Taal, Afmeting _Afmeting, int _gewicht, decimal _prijs) { this.titel = _Titel; this.auteur = _Auteur; this.taal = _Taal; this.afmetingen = _Afmeting; this.gewicht = _gewicht; this.Prijs = _prijs; Boekenlijst = new List <Boek>(); Tijdschriftenlijst = new List <Tijdschrift>(); }
/// <summary> /// Initializes a new instance of the <see cref="Tijdschrift"/> class. /// </summary> /// <param name="_Titel">The titel.</param> /// <param name="_Auteur">The auteur.</param> /// <param name="_Taal">The taal.</param> /// <param name="_Afmeting">The afmeting.</param> /// <param name="_gewicht">The gewicht.</param> /// <param name="_prijs">The prijs.</param> /// <param name="_ISSN">The issn.</param> /// <param name="AantalTijdschriftenBestellen">The aantal tijdschriften bestellen.</param> /// <param name="Besteldag">The besteldag.</param> /// <param name="Publicatiedag">The publicatiedag.</param> public Tijdschrift(string _Titel, string _Auteur, Enum_Taal _Taal, Afmeting _Afmeting, int _gewicht, decimal _prijs, string _ISSN, int _AantalTijdschriftenBestellen, DayOfWeek Besteldag, DayOfWeek Publicatiedag) : base(_Titel, _Auteur, _Taal, _Afmeting, _gewicht, _prijs) { this.titel = _Titel; this.auteur = _Auteur; this.taal = _Taal; this.Afmetingen = _Afmeting; this.gewicht = _gewicht; this.prijs = _prijs; this.iSSN = _ISSN; this.afmetingen = _Afmeting; this.bestelAantal = _AantalTijdschriftenBestellen; }
/// <summary> /// Initializes a new instance of the <see cref="Boek"/> class. /// </summary> /// <param name="_Titel">The titel.</param> /// <param name="_Auteur">The auteur.</param> /// <param name="_Taal">The taal.</param> /// <param name="_Afmeting">The afmeting.</param> /// <param name="_gewicht">The gewicht.</param> /// <param name="_prijs">The prijs.</param> /// <param name="_druk">The druk.</param> /// <param name="_ISBN">The isbn.</param> /// <param name="_maximunAantal">The maximun aantal.</param> /// <param name="miniumAantal">The minium aantal.</param> public Boek(string _Titel, string _Auteur, Enum_Taal _Taal, Afmeting _Afmeting, int _gewicht, decimal _prijs, string _druk, string _ISBN, int _maximunAantal, int _miniumAantal) : base(_Titel, _Auteur, _Taal, _Afmeting, _gewicht, _prijs) { this.titel = _Titel; this.auteur = _Auteur; this.taal = _Taal; this.afmeting = _Afmeting; this.gewicht = _gewicht; this.druk = _druk; this.prijs = _prijs; this.iSBN = _ISBN; this.miniumaantal = _miniumAantal; this.maximumaantal = _maximunAantal; }
static void Main(string[] args) { Boekwinkel winkel = new Boekwinkel("06-4011117, [email protected] ", "ma - vrij : 09:00 - 17:00"); Console.WriteLine("What would you like to do?"); Console.WriteLine(" "); Console.WriteLine("#1 Add a new Book"); Console.WriteLine("#2 Show the store contact information"); // Console.Write(boekwinkelinformatie); string s = Console.ReadLine(); if (s == "1") { Console.WriteLine("What edition of the book is it?"); string druk = Console.ReadLine(); Console.WriteLine("What is the ISBN?"); string ISBN = Console.ReadLine(); Console.WriteLine("What is the maximum amount of books to store in the shop"); int max = Convert.ToInt32(Console.ReadLine()); Console.WriteLine("What is the minimum amount of books to store in the shop"); int min = Convert.ToInt32(Console.ReadLine()); Console.WriteLine("What is the title"); string Titel = Console.ReadLine(); Console.WriteLine("Who is the author"); string Auteur = Console.ReadLine(); Console.WriteLine("What is the language"); Enum_Taal Taal = Console.ReadLine(); Console.WriteLine("What is the mass?"); int Gewicht = Convert.ToInt32(Console.ReadLine()); Console.WriteLine("What is the price"); Decimal Prijs = Convert.ToDecimal(Console.ReadLine()); Afmeting afmeting = new Afmeting(20, 20, 20); Boek boek1 = new Boek(Titel, Auteur, Taal, afmeting, Gewicht, Prijs, druk, ISBN, max, min); } if (s == "2") { string boekwinkelinformatie = winkel.Boekenwinkel(); Console.WriteLine(boekwinkelinformatie); } Console.ReadKey(); }