You could make Field global, declaring it in a header that you #include in each file that needs it, or you could give the Animals class an int* member and make that point to Field (pass Field to each animal in the constructor.