Neumann_Janos_Verseny/fordulo_3/Program/Doboz.cs
2025-03-14 10:51:00 +01:00

28 lines
516 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Program
{
internal class Doboz
{
public string Type { get; set; }
public Doboz Children = null;
public Doboz Parent = null;
public Doboz(string Type) {
this.Type = Type;
}
public void AddChildren(Doboz doboz)
{
doboz.Parent = this;
this.Children = doboz;
}
}
}