casting problem
807569Jun 21 2006 — edited Jun 21 2006Hi,
I have a class called SPlayer which extends Player. Player implements Serializable. I am sending SPlayer objects across a network and want to treat them as Player objects because the client I am sending them to only knows about the Player class and not the SPlayer class.
I have tried casting the SPlayer object to Player but it is still treated as an SPlayer.
Can I get an objects super class or do a 'proper' cast?
Thanks,
Alex