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.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; | |
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.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.gametank; | |
import javax.swing.*; | |
import java.awt.*; | |
import java.util.Random; | |
public class ActionField extends JPanel{ | |
private boolean COLORDED_MODE = false; |
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; | |
import java.awt.*; | |
public abstract class AbstractTank implements Drawable, Destroyable{ | |
private Direction direction; | |
private int x = 128; |
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 Home1 { | |
public static void main(String[] args) { | |
tryReturn(); | |
System.out.println("end"); | |
} |
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 Home2 { | |
public static void main(String[] args) { | |
tryException(); | |
System.out.println("end"); | |
} |
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 lesson7; | |
import java.util.ArrayList; | |
import java.util.List; | |
public class Classroom { | |
List<Student> students; |
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 lesson7; | |
import java.util.ArrayList; | |
import java.util.List; | |
public class Classroom { | |
List<Student> students; |