View Single Post
Old 01-20-2008, 03:45 PM   #1
dooey100
FFR Player
FFR Veteran
 
dooey100's Avatar
 
Join Date: Sep 2006
Posts: 370
Default [Highschool - computers] I don't understand the purpose of interfaces. (In java)

Hi, I'm taking a course in java programming and I just learned how to use interfaces. I know how to use them properly, but I don't see the point. You still have to write the methods for each class that uses the interface, and the only reason I see to use an interface would be to make sure you don't forget any methods.

I know that you can use interfaces for constants, but unless you have a lot of constants, if wouldn't be much trouble to put the constants with all the other variables.

I haven't done any big projects with many classes yet, so they may be more useful in practice then it looks like.

On a slightly unrelated note, didn't there use to be a board for programming?
dooey100 is offline   Reply With Quote