M
M
Maxim2014-07-20 12:55:17
C++ / C#
Maxim, 2014-07-20 12:55:17

What book should I read about organizing classes for toys?

I have problems with the organization of classes, their interaction. Where or what literature can be read to find out how to organize everything correctly. Mb books on OOP what realties. Basically, the problem is in rendering, it turns out that for each class that draws on the screen, you need a class field that is a link to RenderTarget, and you need to come up with your own field name for each class. What would be the right thing to do?
If necessary, I can lay out a code example, then what exactly I don’t like.
Question: what to read / how to read correctly?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Pavlov, 2014-07-20
@1kachan

Most often, if the class name does not come to mind, then it is designed incorrectly, contains too disparate functions. Do not be afraid to make more classes, one class per task / function - not a class that contains one function (method), but a class that implements the execution of one task in the program.
Be sure to read Object-Oriented Design Techniques. P... . This is one of the best books on systems architecture. You could say it's a classic. The book is not the easiest, but will give you the necessary foundation for further growth.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question