As int the subject
public String imie, nazwisko{get; private set;}
I would apply get/set rule for both of them imie
and nazwisko
in the same row
As int the subject
public String imie, nazwisko{get; private set;}
I would apply get/set rule for both of them imie
and nazwisko
in the same row
If you want to declare multiple fields in one statement, you can:
public string imie, nazwisko, whatever;
What you have posted is an attempt to do the same with properties, which is not possible (not with shared getter/setter declaration).
Though, of course these can be on one line:
public string imie{get; private set;} public string nazwisko{get; private set;}
I suggest reading about fields and properties on MSDN.