>>It's a good question, assuming you properly spell out what you're looking for. In other posts, you mentioned Shuffle() and Deal() as methods, which I would never think of as methods attributed to a deck of cards. Cards don't shuffle or deal themselves. Those methods belong to the dealer object. ;-)
>>
>>This kind of questioning is along the right line, but be prepared for answers all over the map. When you start modeling objects, there is never a single right answer -- only variants of less wrong.
>
>I understand that and I don't have a perfect answer to the question. I just want some question in the first interview to see if they know OOP beside saying - do you know OOP? You would be surprised how many times people just say 'no'.
No, I wouldn't be surprised at all. And just as many people just say 'yes'.
What you're discussing, btw, is not OOP. It's OOAD. It's a quibble, but if you're REALLY trying to assess modeling/design skills you ought to call it that.
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement