This file contains hidden or 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 lesson6.gametank; | |
public abstract class AbstractTank { | |
private Direction direction; | |
private int x = 128; | |
private int y = 512; |
This file contains hidden or 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 lesson6.shapes; | |
public abstract class AbstractShape implements Drawable{ | |
} |
This file contains hidden or 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 lesson6.constructor; | |
public class GlyphChild extends Glyph { | |
String d = "j"; | |
public GlyphChild() { | |
} | |
@Override |
This file contains hidden or 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 lesson6.shapes; | |
import java.awt.*; | |
public class Square extends Rectangle{ | |
public Square() { | |
} | |
public void draw(Graphics g) { |
This file contains hidden or 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 lesson6.shapes; | |
import java.awt.*; | |
public class Circle extends Shape { | |
public Circle() { | |
} | |
@Override |
This file contains hidden or 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 lesson6; | |
public class ExceptionFrame9 { | |
public static void main(String[] args) { | |
ExceptionFrame9 ex = new ExceptionFrame9(); | |
System.out.println(ex.doDivision(2, 0)); | |
System.out.println(ex.doDivision(3, 8)); |
This file contains hidden or 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 lesson4.game; | |
import javax.swing.*; | |
import java.awt.*; | |
import java.util.Random; | |
/** | |
* Created by anna on 27.10.15. | |
*/ | |
public class ActionField extends JPanel{ |
This file contains hidden or 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 lesson4.game; | |
import javax.swing.*; | |
import java.awt.*; | |
import java.util.Random; | |
/** | |
* Created by anna on 27.10.15. | |
*/ | |
public class ActionField extends JPanel{ |
This file contains hidden or 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 lesson4.game; | |
import javax.swing.*; | |
import java.awt.*; | |
import java.util.Random; | |
/** | |
* Created by anna on 27.10.15. | |
*/ | |
public class ActionField extends JPanel{ |
This file contains hidden or 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 lesson4.shop; | |
public class Buyer { | |
private String name; | |
private String email; | |
private int phoneNumber; | |
public Buyer() { |