Advertisement
jaVer404

level13.lesson02.task04

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