I would know how to write a function in object orientated language, just I don't know how to do this in mathematica, in an OOP I would define a function like this:
int rss = null;
int Define_RSS(int a, int b, int c, int d){
int output = (code functionality)
rss = (some more functionality)
return output
}
I would like to know how to do the equivalent in mathematica.