19.4 C# 481
If you have each vector in your simulation as a separate instance, for example,
then on some Java platforms this can cause a huge bloat in the amount of memory
required.
Ja va, like ActionScript, has interfaces as a characteristic component of its syn-
tax. In the case of force and torqu e generators, for example, we can replace the
pure-vir tual classes of our C++ implementation with interfaces. Classes such as
GravityForceGeneratorcan then implement these interfaces. This also allo ws a single
class to be both a force generator and a contact generator, if required (this would be
useful when implementing a spring with hard limits, for example).
19.4 C#
C# has gained popularity among game developers as a Java-like managed language for
targ ...