let me start that i know this is a homework question. i'm not looking for anything that i feel is out of control. i just want to know how to set up a class in java, that is defined by UML/OCL as:
methodName(in att1: Class1, out att2: Class2, out att3: Class3)
so does this translate into:
public class MyNewClass
public methodName(Class1 att1, Class2 att2, Class3 att3)
i'm making this worth 300 points cause i want to UNDERSTAND this notation. all the UML books i have don't help me much. my professor has explained to me that the "in" and "out" refer to whether or not the parameter is "used" by the caller or "set" by the caller.
can someone shed some light on this for me? i'm no java expert, but i'm pretty confident in my coding.
my homework involves implementing MANY classes declared as above, but i don't have the slightest clue about how to get the "frame" setup properly.
speedy responses are very welcomed!
if anybody can give me a really slam-bang answer quickly, i'll even kick in another 200 points because i REALLY need this answer speedily.
if any other experts have an objection to my question, please let me know. i've finally made my way to the top15 in MSAccess (please don't laugh *smile*) so i understand that people who ask homework questions (covertly) are the most dreaded of all experts. i am not looking for an answer to my homework... i'm just looking to get going in the right direction!