When writing a class, it is always worthwhile to ask yourself whether this class could be effectively implemented as an immutable class.

 
  • 在编写类时,问问自己这个类是否可以作为不变类有效地实现,总是值得的。
今日热词
目录 附录 查词历史