Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package AV2;
- interface A{
- void showA();
- }
- interface B{
- void showB();
- }
- interface C{
- void showC();
- }
- public class Proba implements A,B,C{
- public static void main(String[] args) {
- Proba proba=new Proba();
- proba.showA();
- proba.showB();
- proba.showC();
- }
- @Override
- public void showA() {
- System.out.println("Interfejs A");
- }
- @Override
- public void showB() {
- System.out.println("Intrfejs B");
- }
- @Override
- public void showC() {
- System.out.println("Interfejs C");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement