Campbell Ritchie wrote:If the main method is the entry point to an application, are you going to start an application off from inside a class like String? How is String to know what you want to do? Have you been through the API documentation to see how many classes have main methods declared? You write a main method because you are going to start an application off. You decide what that main method will do and which methods it starts. You use the types provided by the API as building blocks to make up your app.
Sorry for not being clear.Justin Robbins wrote:. . . I am sorry that I don't understand. I know that we need main because it starts off the program, . . .
That is going to take a long time to answer, but try starting off with this FAQ. See whether that helps.Why would one choose using a class over and interface? aren't interfaces composed of blank methods whereas the class is fully implemented? wouldn't having a class full of optional methods always be better?
I think the number of different answers you get to that sort of question is equal to the number of people askedAlso, how does a framework differ from an Application Programming Interface? they seem very similar.
Our pleasure
Thank you again.

| Consider Paul's rocket mass heater. |