Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.javarush.test.level13.lesson11.home01;
- /* Некорректные строки
- Удали все некорректные строки в интерфейсе Button.
- */
- public class Solution
- {
- public static void main(String[] args) throws Exception
- {
- System.out.println(SimpleObject.NAME);
- System.out.println(Button.NAME);
- }
- interface SimpleObject
- {
- String NAME = "SimpleObject";
- void onPress();
- }
- interface Button extends SimpleObject
- {
- final String NAME = "Submit";
- void onPress();
- String onPress(Object o);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement