If a class is marked with the final modifier, instances of the class can be created with the new operator, but the class cannot serve as a base.

 
  • 如果一个类使用final修饰符来标记,则可用new运算符来创建该类的实例,但该类不能用作基类。
今日热词
目录 附录 查词历史