Created
November 12, 2014 20:45
-
-
Save alexshavelev/91a892a84b90450cccc0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.javarush.test.level11.lesson11.bonus02; | |
/* Нужно добавить в программу новую функциональность | |
Добавь общий базовый класс к классам-фигур: (фигуры из шахмат). | |
*/ | |
public class Solution | |
{ | |
public static void main(String[] args) | |
{ | |
} | |
public class Fig {} | |
public class King extends Fig | |
{ | |
} | |
public class Queen extends Fig | |
{ | |
} | |
public class Rook extends Fig | |
{ | |
} | |
public class Knight extends Fig | |
{ | |
} | |
public class Bishop extends Fig | |
{ | |
} | |
public class Pawn extends Fig | |
{ | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment