Professional Documents
Culture Documents
Program 19
Program 19
interface P1
{
int I = 1;
void showI();
}
interface P2
{
int J = 2;
void showJ();
}
obj.showI();
obj.showJ();
obj.showK();
}
}
Output:
I:1
J:2
K:3