Constructor (C#)

A constructor is a special method that runs automatically when you create an object with new. It sets up the object's starting state, usually by assigning…