I would like to know if it is allowed in the UML to specify a different return type for overloaded operations. This is possible for methods in Java:
public class C
{
public int addOne(int a) {
return a + 1;
}
public float addOne(float f) {
return f + 1f;
}
}
My question is whether this is also allowed in the official UML specification: