Programming, Object Oriented, Java.
inheritance. We can write a code that works on the superclass, and it will work with any subclass type as well. Example Java collections framework has an interface called java.util.Collection, ArrayList and TreeSet are two different implementation of this interface. ArrayList maintains the