oszto12B/Oszto/Jatekos.cs

31 lines
571 B
C#
Raw Normal View History

2023-09-14 12:58:52 +00:00
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;
2023-09-21 12:59:57 +00:00
public Jatekos(string nev,int kezbedb)
2023-09-14 12:58:52 +00:00
{
this.nev = nev;
2023-09-21 12:59:57 +00:00
this.lapok = new Kartyalap[kezbedb];
2023-09-14 12:58:52 +00:00
}
public void terit()
{
Console.WriteLine(nev);
foreach (var item in lapok)
{
Console.WriteLine(item);
}
}
}
}