Files
OOP_projekt_franc/Customer.cpp
T
2026-05-04 14:52:32 +02:00

18 lines
412 B
C++

//
// Created by Franc on 04.05.2026.
//
#include "Customer.h"
Customer::Customer(string n, string p, int l) {
this->name = n;
this->phone = p;
this->loyaltyPoints = l;
}
Customer::~Customer(){}
void Customer::addPoints(int points) {
loyaltyPoints += points;
}
string Customer::getDetails() {
return "Name: " + name + ", Phone: " + phone + ", Loyalty Points: " + to_string(loyaltyPoints);
}