Understanding when checks happen in () and {} initization through class constructors

后端 未结 0 1206
春和景丽
春和景丽 2020-12-18 23:11

From what I understand, {} is a way to initialize variables that has some "safety" advantages over other methods, such as forbidding:



        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题