Hey guys,
I've just started out with
VB and I am running through a fun project to teach it to myself. I have a question in reards to the correct or best way to structure code.
Lets say we are interested in simulating a car. I want to model the process of starting the car and moving some distance. I have two choices:
Do i model the cars movement in one block of code that treats the car as a single entity and use classes to define one object?
OR
Do I uses classes to define each compnent of the car such as left tire, engine...etc.
i want to be able to create new cars easily, and to be able to use different tires, brakes, engines etc. Eventually be able to race 20 odd cars simultaniously. I also want damage and condition to be assigned to various parts of the car making it perform differently.
Has anyone got any advice or another approach?