The following example shows a simple class declaration in which the static initializer is used to perform a calculation that only needs to be done one time.

 
  • 下面的示例显示一个简单的class声明,其中的static初始值设定项用于执行只需进行一次的计算。
今日热词
目录 附录 查词历史