How to properly name classes inside a domain namespace?

Posted by devoured elysium on Stack Overflow See other posts from Stack Overflow or by devoured elysium
Published on 2010-05-02T07:04:30Z Indexed on 2010/05/02 7:07 UTC
Read the original article Hit count: 227

Let's say I'm trying to implement a Chess Game.

I'd create my Chess classes in a Chess namespace. Now, should I prefix all my Chess related classes with the Chess word, or as they are already inside that namespace, should I just call them by what they are?

Example:

ChessGame vs Game
ChessPiece vs Piece

© Stack Overflow or respective owner

Related posts about classes

Related posts about class-design