New answers tagged class-design
1
vote
Accepted
Should I instantiate the state objects of a finite state machine?
There are many ways to model states.
Most programming languages don't model "real world" items directly but rather have their own features that are used to compose solutions that do the ...
1
vote
Should I instantiate the state objects of a finite state machine?
Using classes just as expensive enums isn't object oriented, it's just plain wrong :-)
A possible object oriented approach would be to implement the state transitions as methods of the state objects, ...
Top 50 recent answers are included
Related Tags
class-design × 425object-oriented × 130
object-oriented-design × 85
c# × 75
design × 56
design-patterns × 51
java × 49
c++ × 46
class × 34
python × 23
class-diagram × 23
inheritance × 21
uml × 19
php × 18
architecture × 16
programming-practices × 15
single-responsibility × 15
coding-style × 13
methods × 13
solid × 12
refactoring × 11
interfaces × 10
constructors × 10
database × 9
encapsulation × 9