-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCustomer.cs
More file actions
60 lines (53 loc) · 1.75 KB
/
Customer.cs
File metadata and controls
60 lines (53 loc) · 1.75 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
51
52
53
54
55
56
57
58
59
60
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace oop
{
public class Customer
{
public string customerName;
public int customerAge;
public string customerAddress;
public string customerEmail;
public string customerPhoneNumber;
public List<string> customerSupport;
public List<string> customerFeedBack;
public Customer(string name, int age, string address, string email, string phone)
{
this.customerName = name;
this.customerAge = age;
this.customerAddress = address;
this.customerEmail = email;
this.customerPhoneNumber = phone;
this.customerSupport = new List<string>();
this.customerFeedBack = new List<string>();
}
public void PrintCustomerInfo()
{
Console.WriteLine($"Név: {this.customerName}\nÉletkor: {this.customerAge}\nCím: {this.customerAddress}\nEmail: {this.customerEmail}\nTelefonszám: {this.customerPhoneNumber}");
}
public void UpdateCustomerInfo(string newName, int newAge, string newAddress, string newEmail, string newPhoneNumber)
{
this.customerName = newName;
this.customerAge = newAge;
this.customerAddress = newAddress;
this.customerEmail = newEmail;
this.customerPhoneNumber = newPhoneNumber;
}
public void PlaceOrder(string product, int quantity) {
Console.WriteLine($"{quantity}db {product}-t rendelt az adott személy!");
}
public void RequestSupport(string supportRequest)
{
this.customerSupport.Add(supportRequest);
Console.WriteLine("A támogatási kérelme sikeresen végbement! (support request)");
}
public void SendFeedback(string feedback)
{
this.customerFeedBack.Add(feedback);
Console.WriteLine("Sikeresen elküldte a visszajelzését! (feedback)");
}
}
}