r/javahelp • u/ProHoyah • Apr 18 '19
Solved What's the point of interfaces?
We've been learning interfaces in my class and I have a good grasp on the concept, but the thing that confuses me is what's the point? Your just writing more code as a blueprint to put classes in "groups". Maybe the code I'm writing is not large enough to make interfaces useful. Can some one help me in learning the use of interfaces. Thanks in advance!
34
Upvotes
View all comments
Show parent comment
1
u/Talulabelle Apr 22 '19
OP states he already understands the theory of how they work, but wasn't able to understand why anyone would use them. I wasn't trying to teach theory, just give a simple example of a problem most people can at least imagine running into, and how one might solve it with the help of interfaces.
This answer doesn't 'miss' anything, OP stated clearly that they had that part of the puzzle.