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

php - How to display all orders for a single product showing the most recent first? Woocommerce -

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

angularjs - How restrict admin panel using in backend laravel and admin panel on angular? -