Add project files.
This commit is contained in:
47
Fizetesek/Kártyásfizetés.cs
Normal file
47
Fizetesek/Kártyásfizetés.cs
Normal file
@@ -0,0 +1,47 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Fizetesek
|
||||
{
|
||||
internal class Kártyásfizetés : FizetesMod, IAzonosit
|
||||
{
|
||||
public bool Azonosit()
|
||||
{
|
||||
Console.WriteLine("jelszót kérek a kártyás fizetéshez");
|
||||
string beutottjelszo = Console.ReadLine();
|
||||
|
||||
if (beutottjelszo == "kartya")
|
||||
{
|
||||
return true;
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public override string Fizetes(int Osszeg)
|
||||
{
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
if (Azonosit())
|
||||
{
|
||||
return ($"{Osszeg} összeg fizetve Banki utalásból");
|
||||
}
|
||||
else
|
||||
{
|
||||
return ("nem sikerült a bejelentkezés a Kártyába");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user