Embed presentation
Downloaded 195 times





![Implementing An Interface Any class can implement an interface Use the implements keyword A class can implement multiple interfaces The class must implement all the methods declared in the interface See [biz.adaptivesoftware.examples.interfaces]](https://image.slidesharecdn.com/interfaces-in-java-25279/75/Interfaces-In-Java-6-2048.jpg)


Interfaces allow classes to represent polymorphic types across inheritance trees without multiple inheritance. A class implements an interface using the implements keyword and must define all interface methods but interfaces contain no code, only public static final attributes. Common uses of interfaces include code reuse through polymorphism and marker interfaces as flags for the JVM.





![Implementing An Interface Any class can implement an interface Use the implements keyword A class can implement multiple interfaces The class must implement all the methods declared in the interface See [biz.adaptivesoftware.examples.interfaces]](https://image.slidesharecdn.com/interfaces-in-java-25279/75/Interfaces-In-Java-6-2048.jpg)

