Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package Lesson3Activity4;
- //Creates the WindowBuilder Robot
- public class WindowBuilder extends Constructicons{
- /**
- * Constructor for WindowBuilder class
- * @param a
- * @param s
- * @param d
- * @param b
- * @ return - none
- */
- public WindowBuilder(int a, int s, Direction d, int b){
- super(a,s,d,b);
- }
- /**
- * Overrides build method of Constructicons and instills the set of instructions for the WindowBuilder
- * @ param - none
- * @ return - void
- */
- public void build(){
- for(int i=0; i<4;i++){
- putBeeper();
- move();
- turnRight();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement