在類導向(Class-orientation)的語言中,物件和建構子的關係是非常清晰明瞭的 ... log(`radius: ${radius}`) } } const c = new Circle(10); c.getRadius(); // radius ...
確定! 回上一頁