Price.xxx constructor

Price.xxx(
  1. double amount
)

Constructs a Price with XXX currency of the provided amount.

Implementation

Price.xxx(double amount) : sum = Sum(amount), currency = Currency('XXX');