diff --git a/src/31_InterfaceExample.java b/src/31_InterfaceExample.java index f470d7f..82bfa0e 100644 --- a/src/31_InterfaceExample.java +++ b/src/31_InterfaceExample.java @@ -43,6 +43,7 @@ public void eat() { * * You cannot create object of interface. They are just a blueprint of a class. * * Use implements keyword * * They can only contain abstract methods. + * * Java 8 onwards we can have methods with body within interface (i.e. we can have static as well as default methods). * * 1. For Methods * * They are public and abstract