Or in C# using Automatic Properties with compiler generated backing fields:
public class Pet
{
public PetName Name { get; set; }
public Person Owner { get; set; }
}
Or in C# using Automatic Properties with compiler generated backing fields:
public class Pet
{
public PetName Name { get; set; }
public Person Owner { get; set; }
}