Hello all I have a question. What is the best way to insure that the x and y values in this class are always less than 20.I am mainly concerned with the constructor and copy constructor.
Thanks alot guys. I need to mention my intentions these points are on a 20 x 20 array which is a game board I need to make sure these points stay on the board.But I also need to add the players to the board in random locations. My Problem is if i default to 0 , 0 all the incorrect values will place players in the same cell on the board. I am sorry i was not clear. I guess my best option would be to throw an exception or maybe just not add that player to the board? Thanks to all of you who took the time to read this mess of a post.