You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
819 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Übungen_Anwendungsentwicklung
{
class FamilienAssoziation
{
}
class Vater
{
//Eigenschaften
public string name;
//Verweis auf Kind
public Kind meinKind { get; private set; }
public Vater()
{
meinKind = null;
}
public void bekommeKind (Kind neuKind)
{
meinKind = neuKind;
}
}
class Kind
{
//Eigenschaften
public string name;
public Vater meinVater { get; private set; }
public Kind(Vater neuVater)
{
meinVater = neuVater;
}
}
}