-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgram.cs
More file actions
50 lines (49 loc) · 2.08 KB
/
Program.cs
File metadata and controls
50 lines (49 loc) · 2.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace oop
{
internal class Program
{
static void Main(string[] args)
{
//Vásárló létrehozása:
Customer jozsi = new Customer("József", 41, "Isaszegi út 38", "JozseFA@gmail.com", "36209117155");
//Vásárlóval használható functionök tesztelése:
Console.WriteLine("A vásárló adatai:\n");
jozsi.PrintCustomerInfo();
jozsi.UpdateCustomerInfo("József", 42, "Hungária Krt. 28", "JozseFA@gmail.com", "36201234567");
Console.WriteLine("\nA vásárló adatai a változtatások után:\n");
jozsi.PrintCustomerInfo();
Console.WriteLine("\nÖsszegzés a vásárlásról:");
jozsi.PlaceOrder("alma", 3);
Console.WriteLine("\nA hibaüzenet elküldése a supportnak:");
jozsi.RequestSupport("Promlémám akadt a vásárlás folyamán.\n Kérem mihamarabbi segitségüket!");
Console.WriteLine("\nA visszajelzés elküldése:");
jozsi.SendFeedback("Köszönöm szépen a gyors és készséges segitséget!");
Console.WriteLine("\n\n\n\n\n");
//Fiókok létrehozása:
BankAccount jozsiAccount = new BankAccount("József", 1000000, "0000-6101-3242-3077-5487", "folyószámla", new DateTime(2012, 08, 31));
BankAccount feriAccount = new BankAccount("Ferenc", 3000, "0000-6101-3242-3077-5488", "folyószámla", new DateTime(2020, 09, 14));
//Fiókokkal használható functionök tesztelése:
Console.WriteLine("A létező fiókok a banknál:\n");
jozsiAccount.PrintAccountInfo();
Console.WriteLine();
feriAccount.PrintAccountInfo();
Console.WriteLine("\nÁtutalás:");
jozsiAccount.TransferFundsTo(feriAccount,20000);
Console.WriteLine("\nÁtutalás után a fiókok adatai:\n");
jozsiAccount.PrintAccountInfo();
Console.WriteLine();
feriAccount.PrintAccountInfo();
jozsiAccount.PrintAccountInfo();
Console.WriteLine("\nFiók zárolás:");
jozsiAccount.CloseAccount();
Console.WriteLine("\nFiók információja zárolás után:\n");
jozsiAccount.PrintAccountInfo();
Console.ReadKey();
}
}
}