Skip to content

Instantly share code, notes, and snippets.

@JeroenVinke
Created November 2, 2015 10:37
Show Gist options
  • Save JeroenVinke/8d05611838b18802438c to your computer and use it in GitHub Desktop.
Save JeroenVinke/8d05611838b18802438c to your computer and use it in GitHub Desktop.
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