car-analogy
Car steering algorithm?
i\'ve already asked something similar, but now i\'ve the problem to manage and realize a \"realistic\" steering for a simple 2d (top-down) car racing game.[详细]
2023-01-21 17:17 分类:问答OOP design problem
What is good design in this simple case: Let\'s say I have a base class Car with a method FillTank(Fuel fuel) where[详细]
2022-12-21 00:46 分类:问答Why stick to get-set and not car.speed() and car.speed(55) respectively?
Apart from unambiguous clarity, why should we stick to: car.getSpeed() and car.setSpeed(55) when this could be used as well :[详细]
2022-12-16 08:16 分类:问答Whether to model a car object (and its parts such as engine) with has-a (composition) or is-a (inheritance)?
I am developing a class library which will include the object Car. The dilemma is, Car itself will be a class with fields such as Registration Number, and other general information on the car.[详细]
2022-12-13 23:32 分类:问答