# include "sample1.h"

// コンストラクタの処理内容
Employee::Employee(int wage, int hour) {
  this->wage = wage;  // 時給を保持するメンバー変数に値を設定する
  this->hour = hour;  // 時間を保持するメンバー変数に値を設定する
}

// 給与を返すメンバー関数の処理内容
int Employee::salary() {
  return this->wage * this->hour;
}