main()method? It is a
staticmethod of the class
Although the class
TestFrame1 has been defined it is not instantiated.
main() method is a static part of that class, not
part of any object.
Static methods of a class can be run without constructing an object of the class.
Review the first chapter on objects (currently chapter 25)
if this is unclear.
Here is a picture of what is going on:
main() method is static,
it can ask to create an object (with
frame can refer to that object
in main memory.