Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace Verlag_Buch
- {
- class Program
- {
- static void Main(string[] args)
- {
- }
- class CAutor
- {
- string a_name;
- private List<CBuch> a_Buchlist;
- public string A_name
- {
- get { return a_name; }
- set { A_name = value; }
- }
- //Konstruktor
- public CAutor(string a_name)
- {
- a_Buchlist = new List<CBuch>();
- this.a_name = A_name;
- }
- //Connection
- public void addBuch(CBuch a_Buch)
- {
- a_Buchlist.Add(a_Buch);
- }
- }
- class CBuch
- {
- string b_name;
- string isbn;
- //private List<CAutor> b_Buchlist;
- public string B_name
- {
- get { return b_name; }
- set { B_name = value; }
- }
- public string ISBN
- {
- get { return isbn; }
- set { ISBN = value; }
- }
- //Konstruktor
- public CBuch(string B_name, string ISBN)
- {
- b_Buchlist = new List<CAutor>();
- this.b_name = B_name;
- this.isbn = ISBN;
- }
- //Connection
- public void addAutor(CAutor b_Buch)
- {
- b_Buchlist.Add(b_Buch);
- }
- }
- class CThemengebiet
- {
- string t_name;
- public string T_name
- {
- get { return t_name; }
- set { t_name = value; }
- }
- }
- class CMitarbeiter
- {
- string m_name;
- private List<CThemengebiet> m_Themenliste;
- public string M_name
- {
- get { return M_name; }
- set { m_name = value; }
- }
- public CMitarbeiter(string m_name)
- {
- m_Themenliste = new List<CThemengebiet>();
- this.m_name = M_name;
- }
- public void AddThemengebiet(CThemengebiet m_Themengebiet)
- {
- if(m_Themenliste.Count<3)
- {
- m_Themenliste.Add(m_Themengebiet);
- }
- }
- }
- class CVerlag
- {
- string v_name;
- public string V_name
- {
- get { return v_name; }
- set { v_name = value; }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement