default constructor
常見例句
- You must have a public default constructor.
您必須具有公共缺省構(gòu)造器。 - This instantiation involves the default constructor for the class being called, with the injection of dependencies happening afterwards.
這種實(shí)例化涉及到要調(diào)用的類的默認(rèn)構(gòu)造函數(shù),隨后還要注入依賴關(guān)系。 - For instance, if you decided that all classes should have a default constructor that takes no arguments, you could write a rule that checks for a constructor on each class of an assembly.
例如,如果你決定所有的類都應(yīng)該具有一個(gè)不帶任何參數(shù)的默認(rèn)構(gòu)造函數(shù),則可以編寫一條規(guī)則,以確保程序 集的每個(gè)類上都具有一個(gè)構(gòu)造函數(shù)。
shy818818.blog.163.com 返回 default constructor