31 lines
584 B
C++
31 lines
584 B
C++
#pragma once
|
|
#include "Account.h"
|
|
#include "Product.h"
|
|
|
|
class Investment : public Product
|
|
{
|
|
public:
|
|
unsigned long long amount = 0;
|
|
double percent = 0;
|
|
Account account;
|
|
|
|
Investment() : Product("Èíâåñòèöèîííûé ïðîäóêò") {};
|
|
Investment(
|
|
bool isAvailable,
|
|
unsigned long long amount,
|
|
double percent,
|
|
Account account
|
|
) : Product(
|
|
"Èíâåñòèöèîííûé ïðîäóêò",
|
|
isAvailable
|
|
) {
|
|
this->amount = amount;
|
|
this->percent = percent;
|
|
this->account = account;
|
|
};
|
|
void rebalance() {};
|
|
void invest(unsigned long long amount) {};
|
|
void withdraw(unsigned long long amount) {};
|
|
};
|
|
|