Add project files.
This commit is contained in:
42
SzimulaciOOP/auto.cs
Normal file
42
SzimulaciOOP/auto.cs
Normal file
@@ -0,0 +1,42 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics.Tracing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace SzimulaciOOP
|
||||
{
|
||||
internal class auto
|
||||
{
|
||||
|
||||
public string nev;
|
||||
public int soforpenze;
|
||||
public double fogyasztas;
|
||||
public double benzin;
|
||||
public double benzinkapacitas;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/*
|
||||
soforpenze,autofogyasztasa,benzin,benzintankméret(30-200),adotthosszusaguut
|
||||
*/
|
||||
public auto(string nev,double benzinkapacitas)
|
||||
{
|
||||
Random random = new Random();
|
||||
this.nev = nev;
|
||||
this.benzinkapacitas = benzinkapacitas;
|
||||
soforpenze = random.Next(10000,300000);
|
||||
fogyasztas = random.Next(4,40);
|
||||
benzin = random.NextDouble();
|
||||
soforpenze = random.Next(10000,300000);
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user