diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..c3f502a --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,8 @@ +# 디폴트 무시된 파일 +/shelf/ +/workspace.xml +# 에디터 기반 HTTP 클라이언트 요청 +/httpRequests/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml diff --git a/.idea/24_2_BE_Beginner_Week2_team1.iml b/.idea/24_2_BE_Beginner_Week2_team1.iml new file mode 100644 index 0000000..b107a2d --- /dev/null +++ b/.idea/24_2_BE_Beginner_Week2_team1.iml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..4444b22 --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..7be0d1b --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/.idea/uiDesigner.xml b/.idea/uiDesigner.xml new file mode 100644 index 0000000..2b63946 --- /dev/null +++ b/.idea/uiDesigner.xml @@ -0,0 +1,124 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..35eb1dd --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/module/module.iml b/module/module.iml new file mode 100644 index 0000000..c90834f --- /dev/null +++ b/module/module.iml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/module/src/Cloth.java b/module/src/Cloth.java new file mode 100644 index 0000000..9d2e7ce --- /dev/null +++ b/module/src/Cloth.java @@ -0,0 +1,26 @@ +public abstract class Cloth { + private String name; + private String material; + private String color; + private char size; + private int season; + private boolean cleanliness; + + public Cloth(String name, String material, String color, Character size, Integer season, Boolean cleanliness) { + this.name = name; + this.material = material; + this.color = color; + this.size = size; + this.season = season; + this.cleanliness = cleanliness; + } + + public void displayClothInfo() { + System.out.println("Name: " + name); + System.out.println("Material: " + material); + System.out.println("Color: " + color); + System.out.println("Size: " + size); + System.out.println("Season: " + season); + System.out.println("Cleanliness: " + cleanliness); + } +} \ No newline at end of file diff --git a/module/src/Main.java b/module/src/Main.java new file mode 100644 index 0000000..b0e81ba --- /dev/null +++ b/module/src/Main.java @@ -0,0 +1,7 @@ +public class Main { + public static void main(String[] args) { + // 명령어 구현 안 한 그저 확인용 코드... + Shirt shirt = new Shirt("Basic Shirt", "Cotton", "White", 'M', 1, true, "Long", "Round"); + shirt.displayClothInfo(); + } +} \ No newline at end of file diff --git a/module/src/Shirt.java b/module/src/Shirt.java new file mode 100644 index 0000000..a991bc2 --- /dev/null +++ b/module/src/Shirt.java @@ -0,0 +1,15 @@ +public class Shirt extends Top { + private String collarShape; + + public Shirt(String name, String material, String color, Character size, Integer season, Boolean cleanliness, String sleeveLength, String collarShape) { + super(name, material, color, size, season, cleanliness, sleeveLength); + this.collarShape = collarShape; + } + + @Override + public void displayClothInfo() { + super.displayClothInfo(); + System.out.println("Sleeve Length: " + this.getSleeveLength()); + System.out.println("Collar Shape: " + collarShape); + } +} \ No newline at end of file diff --git a/module/src/Top.java b/module/src/Top.java new file mode 100644 index 0000000..d50c6be --- /dev/null +++ b/module/src/Top.java @@ -0,0 +1,12 @@ +public abstract class Top extends Cloth { + private String sleeveLength; + + public Top(String name, String material, String color, Character size, Integer season, Boolean cleanliness, String sleeveLength) { + super(name, material, color, size, season, cleanliness); + this.sleeveLength = sleeveLength; + } + + public String getSleeveLength() { + return sleeveLength; + } +} \ No newline at end of file diff --git a/out/production/module/Cloth.class b/out/production/module/Cloth.class new file mode 100644 index 0000000..9e839f9 Binary files /dev/null and b/out/production/module/Cloth.class differ diff --git a/out/production/module/Main.class b/out/production/module/Main.class new file mode 100644 index 0000000..410ae7f Binary files /dev/null and b/out/production/module/Main.class differ diff --git a/out/production/module/Shirt.class b/out/production/module/Shirt.class new file mode 100644 index 0000000..b3e17e1 Binary files /dev/null and b/out/production/module/Shirt.class differ diff --git a/out/production/module/Top.class b/out/production/module/Top.class new file mode 100644 index 0000000..85f43bb Binary files /dev/null and b/out/production/module/Top.class differ