0% found this document useful (0 votes)
22 views1 page

Java Multi-Interface Example Code

Uploaded by

pinkymaddy10
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
22 views1 page

Java Multi-Interface Example Code

Uploaded by

pinkymaddy10
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

interface Printable {

void print();
}
interface Showable {
void show();
}
class Process implements Printable, Showable {
public void print() {
[Link]("Hello");
}
public void show() {
[Link]("Welcome");
}
public class Multiinterface{
public static void main(String args[]) {
Printable p = new Process();
[Link]();
Showable s = new Process();
[Link]();
}
}

You might also like