
Show your mastery of the taking design models to language specific code. How does language choice affect your process here? Can you bring an object-oriented design to a “non object-oriented” language?
So in the last topic you read, and hopefully liked, my explanation of how to convert classes to tables. Now we are going to check whether good diagrams make good code (they do).
The conversion from classes to code is not that hard, provided your language fits the project and the design model.
A short hint: don’t waste your time. Just use an object-oriented language if you did object-oriented design.
Another hint: KNOW YOUR PROGRAMMING LANGUAGE. It will save you a lot of time if you already understand the functions you might be using.
Here I found and easy example. It shows how to translate the c++ code from the class diagram:


That’s it! Provided your programming language fits your design and has all the functions you need, your code should flow onto your screen. Done! Just kidding, we will continue for a while.

#Mastery09