Created
November 2, 2015 10:37
-
-
Save JeroenVinke/8d05611838b18802438c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct Address | |
{ | |
public string adres {get;set;} | |
public Address(string adres) { | |
this.adres = adres; | |
} | |
} | |
class Person | |
{ | |
public string naam; | |
public int leeftijd | |
Address adres; | |
public Person(string naam, int leeftijd, Address adres) { | |
this.naam = naam; | |
this.leeftijd = leeftijd; | |
this.adres = adres; | |
} | |
} | |
Address adres = new Address("teststraat 35"); | |
Person person = new Person("Damy", 105, adres); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment