Mastery09 Class to Classes

, and welcome my friend to the next topic. We have learned a lot about languages UML and in my last post we talked about how to convert classes to tables. You still remember it right?
And after reading my posts you are a pro in UML! NO? check out the other post of the course.

So, you want to be a code writer? Let me tell you something, I know that if you read the post, you still won’t be able to write a code, but it may be a first step. Take a look at this UML I created for a group project.

by SolidSnake8

You have all necessary classes and methods in it. The name of the methods can give you a hint about their function. Let’s take a look at this UML (object oriented!). For instance “+becherNachfuellen():void”, simply means “cupRefill”. What is the function of this method? Take a guess (hoho)!
Exactly, the function is to refill the cups. All you have to do now is to now all the commands you need for this method (do-loop should be enough). 
Pick one class and start with the variables and methods. After you finished the first class go with the second and so on. 

Is it necessary to take an object-oriented class? No, it depends on your knowledge, I mean why should you pick a modeling language you have no knowledge about. I would prefer to use Java for this example, why? Haha that’s not so hard to answer!  I’ve already written a big part of the code for the program represented by this UML in a previous class.One last tip from my side, don’t start to write your code without understanding the functions of the methods, it can cost you a lot of time and can be very frustrating. 

Well, well it won’t get any better than that! So as always, thank you for sticking around.
See you on my next post. 
-SolidSnake8

Hinterlasse einen Kommentar

Erstelle eine Website wie diese mit WordPress.com
Jetzt starten