18 lines
412 B
C++
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);
|
|
} |