having been born the third son of the king , he was hardly beyond his twelfth year when his mind began to comprehend that ammon , the oldest son of david , was meant to become king when his father died .