oszto12B/Oszto/Jatekos.cs
2023-09-21 14:59:57 +02:00

31 lines
571 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Oszto
{
class Jatekos
{
public Kartyalap[] lapok;
public string nev;
public Jatekos(string nev,int kezbedb)
{
this.nev = nev;
this.lapok = new Kartyalap[kezbedb];
}
public void terit()
{
Console.WriteLine(nev);
foreach (var item in lapok)
{
Console.WriteLine(item);
}
}
}
}