The Public Force and Private Army
Ah, the everlasting war between public and private. Unlike in real life, where private army wouldn't really be beneficial to everyone involved, privates are very useful in the realm of coding. Well actually, privates don't really exist in the realm of coding too. Yes, the complier won't allow it, but if you somehow force the computer to, say, call a private function(such as using reflection), it will happily do that because computer doesn't actually care about that. Objects are just sequence of bits that computer just cuts up to show you. Your Vector2 with x and y variable is just 8-byte(if you are using 4-byte floats) object that has some sequence of bits that could be cut in half and be interpreted as 2 4-byte floats. You could just cut it to 8 1-byte numbers but that would just be garbage data with no meaning so you just say "give me x" and the computer would carefully read the first 4 bytes and interprete it as a 4-byte float. Even if the x is private, y...