I'm learning about constructors and am still a bit of a newbie in programming so apologies in advance if I'm using any terminology incorrectly. I believe that what I've read is there's a handy default constructor in C# that allows you to declare properties in object initialization like this…
Cat cat = new Cat { Age = 10, Name = "Fluffy" };
However I'm using UnityScript in the Unity3D engine and this language is, although often referred to as Javascript, more similar to JScript.NET. Is there a default constructor like the C# one available when initializing an object?
Currently what I have to do is initialize the object then set each property one at a time. Alternatively I can create a constructor I can use but I'm just curious if there's already a default one there like in C#?