# 示例代码 class GameSound { constructor(name, type) { this.name = name; this.type = type; } getInfo() { return `Sound: ${this.name}, Type: ${this.type}`; } }