Quote:
Originally Posted by Joe Ross
...after writing the same code in a subsystem for the 6th solenoid and the 3rd on/off motor,...
|
It sounds like you were right when you don't have the experience you need with Object Oriented programming. Instead of writing the same code in multiple places for multiple solenoids, you probably could have extended the Solenoid class with the methods you wanted. Extension though Inheritance is probably one of the best tools you can use for the kind of configurable control you're talking about.