Interfaces in Java

Interfaces are a way of achieving abstraction in Java. It is blueprint of a class. Following points are important when we talk about interfaces. IS-A relationship Interface defines a type for an object. So, objects of a class represent IS-A relationship with the interface it implements. Let’s understand this with an example. Suppose, we have … Continue reading Interfaces in Java