namespace NS1 { public class Class1 : Object, Interface1 { public string name { get; construct; } public string str1 { get; set; } public Class1 (string name) { this.name = name; } } void main() { var obj = new Class1("clas"); obj.str1 = "zzz"; } }