Class interaction

Posted by user1264391 on Stack Overflow See other posts from Stack Overflow or by user1264391
Published on 2012-03-27T23:16:10Z Indexed on 2012/03/27 23:29 UTC
Read the original article Hit count: 223

Filed under:
|

Ok so I'm doing a simulation about a "Mall" I have many classes in the same "level" which corresponds to each person's personality. For example I have the class: clown, thief, assassin, materialist, etc. in the same level And a father class called Clients. In the Client class I have some methods for eating,walking, etc. and each specific class has a specific method, the thief steals, assassin kills, etc. I was wondering how could I put every "client" in a list and still cast every specific method?

© Stack Overflow or respective owner

Related posts about class

Related posts about simulation