Last active
November 19, 2015 20:06
-
-
Save AnnaBoro/3df5a09029afafa9746f to your computer and use it in GitHub Desktop.
+square
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) { | |
System.out.println("Draw square"); | |
g.setColor(new Color(30, 230, 200)); | |
g.fillRect(200, 100, 50, 50); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment