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".
精彩评论