Robin Rodricks
Robin Rodricks

Reputation: 114046

What does "ctor" stand for in class constructors?

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

Upvotes: 14

Views: 5770

Answers (3)

Saurabh Gokhale
Saurabh Gokhale

Reputation: 46415

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.

Upvotes: 6

Mot
Mot

Reputation: 29580

It stands for "creator" or "constructor".

Upvotes: 2

artyom.stv
artyom.stv

Reputation: 2164

That is a short name of ConstrucTOR

Upvotes: 20

Related Questions