setPrice method

void setPrice(
  1. double d
)

Setter for price

Implementation

void setPrice(double d) {
  _price = d;
}