I understand that you look at it and think that this is a problem with the chicken and the egg, but it is not at all.
OO, , , Java. Java , " ". (String []) . . - , , " " "". .
Java (.. ) , , . . , / . Math, . - , OO, /, OO.
. , .
Java ALWAYS, - ( , ).
, , JVM . . . main .
, (String []), :
XCopy x = new XCopy();
XCopy, ( ) x . XCopy , .
, , , !
:
Namespace XCopy
{
function void main(String[])
{
int orig = 42;
XCopy x = new XCopy();
int y = x.go(orig);
System.out.println(orig + " " + " y);
}
}
Class XCopy
{
method int go(int i)
{
....
return whatever;
}
}
, , , .
, !