Coursework/Coursework/Deposit.h

25 lines
448 B
C++

#pragma once
#include "Product.h"
#include "Account.h"
class Deposit : public Product
{
public:
Account account;
unsigned long long amount = 0;
Deposit() : Product("Áàíêîâñêèé âêëàä") {};
Deposit(
bool isAvailable,
Account account,
unsigned long long amount
) : Product(
"Áàíêîâñêèé âêëàä",
isAvailable
) {
this->account = account;
this->amount = amount;
};
};