To learn how to do this in java you have to really understand how object orientated programming works, I will try and explain it here but watching some tutorials or reading some reference books will...