// ノートを読む. // 仮引数の型がvoidのときはそれを省略できる. string Notebook::Read() const { return note; // noteの内容を返す. } // ノートに書く. void Notebook::Write(string str) { note = str; // noteに代入する. }