Hi Guys,
We're doing a software engineering project for the second year of my degree, it's supposed to mimic a 'real' software development life cycle as much as possible.
I'm currently going over our Team's UML model and I have a question about methods in the diagram.
Say we have a method getName() that returns the name of a character. Is it standard practice to include what is returned within the brackets, for example "getName(String name)" or not?
Secondly, if we have a method setName() which sets the name, and as such returns nothing, is it standard practice to complete the method with : void in the UML diagram. So: "setName() : void" as there is no return parameter?
I've read several text books and online resources and haven't found a certain yes or no. I've asked my lecturer and she says either is right as long as you justify why you've chosen that way of doing things, but that seems to be the answer for everything we ask.
So, I was wondering what the members of OcUK would do in this situation, as you'd obviously have more experience than me
Thanks A Lot
We're doing a software engineering project for the second year of my degree, it's supposed to mimic a 'real' software development life cycle as much as possible.
I'm currently going over our Team's UML model and I have a question about methods in the diagram.
Say we have a method getName() that returns the name of a character. Is it standard practice to include what is returned within the brackets, for example "getName(String name)" or not?
Secondly, if we have a method setName() which sets the name, and as such returns nothing, is it standard practice to complete the method with : void in the UML diagram. So: "setName() : void" as there is no return parameter?
I've read several text books and online resources and haven't found a certain yes or no. I've asked my lecturer and she says either is right as long as you justify why you've chosen that way of doing things, but that seems to be the answer for everything we ask.
So, I was wondering what the members of OcUK would do in this situation, as you'd obviously have more experience than me

Thanks A Lot