开发者

What does "ctor" stand for in class constructors?

I've often seen the word "ctor" used in class constructors. What does it mea开发者_如何学编程n?


That is a short name of ConstrucTOR


Yes, It does stand for ConstrucTOR.

Btw, it is used as a shortcut for writing the default constructor in Visual C#.
Try, [ctor + press tab twice] = default constructor.


It stands for "creator" or "constructor".

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜