#include "Cash.h" // Constructs a cash investment of the given amount. Cash::Cash(double amount) { setAmount(amount); } // Returns this cash's cost, which is equal to the amount of cash. double Cash::cost() const { return m_amount; } // Returns this cash's market value, which is equal to the amount of cash. double Cash::marketValue() const { return m_amount; } // Since cash is a fixed asset, it never makes any profit. double Cash::profit() const { return 0.0; } // Sets the amount of cash invested to the given value. void Cash::setAmount(double amount) { m_amount = amount; }