All Questions
Tagged with initialization design
2 questions
2
votes
3
answers
247
views
What options are there to handle dependencies that may error?
I have an application, which contains a logger. The logger already exists and is ready to be used, so it can be passed directly to the constructor.
class App {
private readonly logger: Logger;
...
2
votes
1
answer
118
views
Modelling seats of a table in a social game
Assume we want to model a table where players can sit down to get together to play a game (card games, dice games, ...). Assume a few properties associated with each seat
class Seat
{
public int ...