I would be very grateful if someone could help me understand the passing of variables and methods between classes. For some reason, this concept completely eludes me, and I am never going to advance if I can't grasp it.
I understand the format when calling things from another class:
Code:
But it is never as simple as this, especially when using GUI's, JTables, arrays, vectors, etc. There's always implementing and extending, instantiating, declarations, exceptions, arguments....ugh!
It's like the English language; almost every instance has some kind of exception ("i" before "e" except after "c" or when sounding like an "a" as in "neighbor" or "sleigh").
Can someone please help me learn the Java rule exceptions (not exceptions as in handling...*grumble* try and catch....*grumble.*
I understand the format when calling things from another class:
Code:
className.method(arguments, constraints);
But it is never as simple as this, especially when using GUI's, JTables, arrays, vectors, etc. There's always implementing and extending, instantiating, declarations, exceptions, arguments....ugh!
It's like the English language; almost every instance has some kind of exception ("i" before "e" except after "c" or when sounding like an "a" as in "neighbor" or "sleigh").
Can someone please help me learn the Java rule exceptions (not exceptions as in handling...*grumble* try and catch....*grumble.*