Finance manager
Лабораторна робота №2 - Документація коду
Loading...
Searching...
No Matches
ForecastStrategy.h
Go to the documentation of this file.
1#pragma once
2#include <vector>
3#include "Transaction.h"
4
22public:
30 virtual ~ForecastStrategy() {} // Використання {} замість = default
31
42 virtual double forecast(const std::vector<Transaction>& history, int months) = 0;
43};
Оголошення класу Transaction, що представляє одну фінансову операцію.
Абстрактний базовий клас (інтерфейс) для стратегій прогнозування.
Definition ForecastStrategy.h:21
virtual ~ForecastStrategy()
Віртуальний деструктор.
Definition ForecastStrategy.h:30
virtual double forecast(const std::vector< Transaction > &history, int months)=0
Чисто віртуальний (pure virtual) метод для розрахунку прогнозу.