Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialMiguel Gonzalez Rocha
2,849 PointsWhat are exactly interfaces?
i just read the interface documentation and please someone correct me if wrong but interface are like methods for classes... ????
1 Answer
Michael Hess
24,512 PointsHi Miguel,
An interface is a type of class that is called an abstract class. An interface defines the contract but forces the subclass object to define the one and only one implementation. Basically, an interface contains behaviors that a class implements.
Please see: http://www.tutorialspoint.com/java/java_interfaces.htm
Hope this helps :)
Adrian Chelu
3,789 PointsAdrian Chelu
3,789 Pointsthanks! that helped! I have got the same problem of missunderstanding the concept behind the interfaces.