day18_Rectangle

육희영·2021년 10월 28일
0
package com.java1.day18;

class Shape {
	protected int x, y;
}

interface Drawable {
	void draw();
}

public class Rectangle extends Shape implements Drawable{
	int width, height;

	public void draw() {
		System.out.println("Rectangle Draw");
	}
}

0개의 댓글

관련 채용 정보