Using final prevents derived classes from changing the behavior of the class by overriding important functions.

 
  • 使用final可防止派生类通过重写重要的函数而更改此类的行为。
今日热词
目录 附录 查词历史