14

I've often seen the word "ctor" used in class constructors. What does it mean?

0

3 Answers 3

20

That is a short name of ConstrucTOR

6

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.

2

It stands for "creator" or "constructor".

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.