📜  构造函数与静态块 - 任何代码示例

📅  最后修改于: 2022-03-11 14:56:35.759000             🧑  作者: Mango

代码示例1
Constructor is used for creating object,
initializing instance and 
Execution depends on the object

I use it in pages classes in my framework

Static Block:
 used for initializing statics members,
it belongs to the class and only one copy
and runs only once and before everything

I use it in configuration.reader class
  in my framework