15 lines
363 B
C#
15 lines
363 B
C#
namespace _2023._12._11;
|
|
|
|
public class Termek
|
|
{
|
|
private string nev;
|
|
private int mennyiseg;
|
|
|
|
string[,] termekek = {{"tej", "369", "10"}, {"alma", "319", "8"}, {"banán", "389", "15"}, {"uborka", "449", "20"}, {"répa", "399", "6"}};
|
|
|
|
public Termek(string nev, int mennyiseg)
|
|
{
|
|
this.nev = nev;
|
|
this.mennyiseg = mennyiseg;
|
|
}
|
|
} |