C++ Header Fileasset.h#ifndef ASSET_H#define ASSET_H#include <QString>#include <QDate>class Asset{private:QString description;protected:QString type;QDate date;public:Asset(QString des, QDate dat);virtual double value() const = 0;QString getDescription() const;QString getType() const;};#endif // ASSET_HassetList.h#ifndef ASSETLIST_H#define ASSETLIST_H#include <QList>#include <QString>#include "ass
...[Show More]
C++ Header File
asset.h
#ifndef ASSET_H
#define ASSET_H
#include <QString>
#include <QDate>
class Asset
{
private:
QString description;
protected:
QString type;
QDate date;
public:
Asset(QString des, QDate dat);
virtual double value() const = 0;
QString getDescription() const;
QString getType() const;
};
#endif // ASSET_H
assetList.h
#ifndef ASSETLIST_H
#define ASSETLIST_H
#include <QList>
#include <QString>
#include "asset.h"
class AssetList : public QList<Asset*> {
public:
~AssetList();
bool addAsset(Asset * a);
Asset * findAsset(QString des) const;
double totalValue(QString typ) const;
};
#endif // ASSETLIST_H
bond.h
#ifndef BOND_H
#define BOND_H
#include <QString>
#include <QDate>
#include "asset.h
[Show Less]
Access Full Document
Instant download after payment
Card Payments
₿
Crypto Accepted