A class is a blueprint for an object. It tells the virtual machine how to make an object of that particular type. You need two classes to create and use a object. One class for the type of object you want to use and a tester class to test your class. The tester class is where you put your main method.
A java application is basically objects talking to other objects.
No comments:
Post a Comment