免費開始練習
統測 115年 [電機與電子群資電類] 專業科目(2)

第 47 題

在 C++ 語言中,想要定義類別名稱為 Student 的建構子(Constructor),下列何者正確?
  • A Student(int wh){ ... }
  • B int Student(int hw){ ... }
  • C double Student(double weight, double height){ ... }
  • D void Student(height, weight){ ... }
🤖
AI 詳解 AI 專屬家教

登入後即可查看 AI 生成的完整詳解。

🏷️ 相關主題

程式語言設計與實作
查看更多「[電機與電子群資電類] 專業科目(2)」的主題分類考古題