I know how to work with objects.. but one thing in particular has me scratching my head.
Static methods.
I'll give an example.
Toolkit theKit = Toolkit.getDefaultToolkit();
I think that the theKit
object now holds new Toolkit();
class.. but im not sure.
Furthermore I can do theKit.getScreenResolution();
now with theKit
reference variable.
Is that because Thetoolkit
class it self contains that method?
Forgive me, now that I wrote it all out it seems obvious but ill ask anyway. Thank you.