Interface inheritance

A class implements an interface, but one interface extends another interface.


\begin{lstlisting}
interface Printable{
void print();
}
interface Showable e...
...bj = new TestInterface4();
obj.print();
obj.show();
}
}
\end{lstlisting}

Output:


\begin{lstlisting}
Hello
Welcome
\end{lstlisting}