21 lines
395 B
C#
21 lines
395 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace SzimulacioOOP
|
|
{
|
|
internal class Sofor : Szemely
|
|
{
|
|
public double Tarca { get; set; }
|
|
public Sofor(string Nev) : base(Nev)
|
|
{
|
|
Random rd = new Random();
|
|
|
|
Tarca = rd.NextDouble() * 22000 + 2000;
|
|
|
|
}
|
|
}
|
|
}
|