/*
* Copyright ©2026 Soham Pardeshi. All rights reserved.
* Permission is hereby granted to students registered for University of
* Washington CSE 333 for use solely during Summer Quarter 2026 for
* purposes of the course. No other use, copying, distribution, or
* modification is permitted without prior written consent. Copyrights
* for third-party components of this work must be honored. Instructors
* interested in reusing these course materials should contact the author.
*/
#ifndef CASH_H_
#define CASH_H_
#include <string>
#include "Asset.h"
namespace cse333 {
// A pile of cash. Cash is-a Asset whose market value is just its amount.
// Header-only because every method is short and inline.
class Cash : public Asset {
public:
explicit Cash(double amount) : Asset("Cash"), amount_(amount) {}
double GetMarketValue() const override { return amount_; }
private:
double amount_;
};
} // namespace cse333
#endif // CASH_H_