GMU:Functions and Classes (Arduino): Difference between revisions

From Medien Wiki
No edit summary
Line 152: Line 152:
Classes can build up on each other ("inheritance").
Classes can build up on each other ("inheritance").


In the beginning we promised that it is possible to replace different motor drivers without changing the rest of the program.
In the beginning we promised that it is possible to replace different motor drivers without changing the rest of the program.<br>
Classes can indeed include other Objects in the form of „member variables“.
Classes can indeed include other Objects in the form of „member variables“.


C++ allows class declarations and the code for included Functions to be be placed in different files.  
C++ allows class declarations and the code for included Functions to be be placed in different files. <br>
If you want to know more about that you can read this article about creating libraries in Arduino: [http://arduino.cc/en/Hacking/LibraryTutorial http://arduino.cc/en/Hacking/LibraryTutorial ]
If you want to know more about that you can read this article about creating libraries in Arduino: <br>[http://arduino.cc/en/Hacking/LibraryTutorial http://arduino.cc/en/Hacking/LibraryTutorial ]


<br>
<br>
<br>
<br>
<br>
<br>