object - How am I writing this constructor? -


how writing object types "addressinfo homeaddress" , "addressinfo workaddress" in constructor?!

public employee(string name,addressinfo homeaddress, addressinfo workaddress, int debt)   {     this.name=name ;    ???    ???     this.debt=debt;  } 

just copy-and-think-and-paste code initializes this.name. except different variable , type name, same.


Comments

Popular posts from this blog

asp.net - How to correctly use QUERY_STRING in ISAPI rewrite? -

jsf - "PropertyNotWritableException: Illegal Syntax for Set Operation" error when setting value in bean -

arrays - Algorithm to find ideal starting spot in a circle -