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 - Autoloader issue not returning Class -

java - How to put two numbers separated by a space into two different arrays -

c++ - Why am i getting wrong values when performing PE base relocation? -