Advertisement
jaVer404

level13.lesson11.home08

May 24th, 2015
239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.57 KB | None | 0 0
  1. package com.javarush.test.level13.lesson11.home08;
  2.  
  3. /* Интерфейс Updatable в классе Screen
  4. Реализовать интерфейс Updatable в классе Screen.
  5. */
  6.  
  7. public class Solution
  8. {
  9.     public static void main(String[] args) throws Exception
  10.     {
  11.     }
  12.  
  13.     interface Selectable
  14.     {
  15.         void onSelect();
  16.     }
  17.  
  18.     interface Updatable extends Selectable
  19.     {
  20.         void refresh();
  21.     }
  22.  
  23.     class Screen implements Updatable
  24.     {
  25.         public void refresh(){
  26.  
  27.         }
  28.         public void onSelect(){}
  29.  
  30.     }
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement