Added Oracle Java Docs for interfaces (#21602)

* Added Oracle Java Docs for interfaces

* Fixed formatting
This commit is contained in:
Jonathan Lam
2018-11-18 15:23:11 -08:00
committed by Manish Giri
parent fbcee51d03
commit 7ae7aa433d

View File

@ -262,3 +262,6 @@ public class SmartPhone implements MusicPlayer {
Whoops, did I forget `next()` ? See, since it was a `default` method, I didn't had to provide an implementation at all. (Won't work for JDK < 8)
So, now you have a good grasp of Interfaces! Go learn about Abstract Classes to know how Java gives you yet another way to define contracts.
#### More Information
- [Oracle Java Docs - Interfaces](https://docs.oracle.com/javase/specs/jls/se7/html/jls-9.html)