posted 18 years ago
often, one of the first things you'll see in Class A's main method is a creation of an object of type A... i.e. within main you'll see
A myA = new A();
now you can call A's non-static methods within main, on a
myA.nonStaticMethod1();
myA.nonstaticMethod2();
etc.
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors