Class-ok létrehozása

master
László Imre Gyuricza 7 months ago
parent 7002f09ce8
commit c77004d401

@ -0,0 +1,19 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Garázsszimulátor
{
class Diszpecser : Szemelyzet
{
public Diszpecser(string nev, bool nem, int kor, int egyenleg)
{
this.nev = nev;
this.nem = nem;
this.kor = kor;
this.egyenleg = egyenleg;
}
}
}

@ -0,0 +1,19 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Garázsszimulátor
{
class Fonok : Szemelyzet
{
public Fonok(string nev, bool nem, int kor, int egyenleg)
{
this.nev = nev;
this.nem = nem;
this.kor = kor;
this.egyenleg = egyenleg;
}
}
}

@ -0,0 +1,20 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Garázsszimulátor
{
class Garazsmester : Szemelyzet
{
public Garazsmester(string nev, bool nem, int kor, int egyenleg)
{
this.nev = nev;
this.nem = nem;
this.kor = kor;
this.egyenleg = egyenleg;
}
}
}

@ -43,8 +43,16 @@
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Diszpecser.cs" />
<Compile Include="Fonok.cs" />
<Compile Include="Garazsmester.cs" />
<Compile Include="Jarmuvek.cs" />
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Sofor.cs" />
<Compile Include="Szemelyauto.cs" />
<Compile Include="Szemelyzet.cs" />
<Compile Include="Teherauto.cs" />
</ItemGroup>
<ItemGroup>
<None Include="App.config" />

@ -0,0 +1,23 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Garázsszimulátor
{
class Jarmuvek
{
public string marka;
public string tipus;
public string besorolas;
public int rendszam;
public string rakomany;
public int rakomennyi;
public string menetlevel;
public int szallszemszam;
public int fuvardij;
}
}

@ -10,6 +10,7 @@ namespace Garázsszimulátor
{
static void Main(string[] args)
{
}
}
}

@ -0,0 +1,19 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Garázsszimulátor
{
class Sofor : Szemelyzet
{
public Sofor(string nev, bool nem, int kor, int egyenleg)
{
this.nev = nev;
this.nem = nem;
this.kor = kor;
this.egyenleg = egyenleg;
}
}
}

@ -0,0 +1,23 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Garázsszimulátor
{
class Szemelyauto : Jarmuvek
{
public Szemelyauto(string marka, string tipus, int rendszam, int szallszemszam, int fuvardij)
{
this.marka = marka;
this.besorolas = "Szemelyauto";
this.tipus = tipus;
this.rendszam = rendszam;
this.szallszemszam = szallszemszam;
this.fuvardij = fuvardij;
}
}
}

@ -0,0 +1,16 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Garázsszimulátor
{
class Szemelyzet
{
public string nev;
public bool nem;
public int kor;
public int egyenleg;
}
}

@ -0,0 +1,22 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Garázsszimulátor
{
class Teherauto : Jarmuvek
{
public Teherauto(string marka, string tipus, int rendszam, string rakomany, int rakomennyi, string menetlevel)
{
this.marka = marka;
this.besorolas = "Teherauto";
this.tipus = tipus;
this.rendszam = rendszam;
this.rakomany = rakomany;
this.rakomennyi = rakomennyi;
this.menetlevel = menetlevel;
}
}
}
Loading…
Cancel
Save