Skip to content

Commit

Permalink
Merge pull request #3 from GDSC-PKNU-Official/lhj
Browse files Browse the repository at this point in the history
Upload Cloth&Top&Shirt
  • Loading branch information
Cloie-Kim authored Sep 22, 2024
2 parents fc2df25 + da1f4c3 commit 387d607
Show file tree
Hide file tree
Showing 15 changed files with 235 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions .idea/24_2_BE_Beginner_Week2_team1.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

124 changes: 124 additions & 0 deletions .idea/uiDesigner.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions module/module.iml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>
26 changes: 26 additions & 0 deletions module/src/Cloth.java
Original file line number Diff line number Diff line change
@@ -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);
}
}
7 changes: 7 additions & 0 deletions module/src/Main.java
Original file line number Diff line number Diff line change
@@ -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();
}
}
15 changes: 15 additions & 0 deletions module/src/Shirt.java
Original file line number Diff line number Diff line change
@@ -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);
}
}
12 changes: 12 additions & 0 deletions module/src/Top.java
Original file line number Diff line number Diff line change
@@ -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;
}
}
Binary file added out/production/module/Cloth.class
Binary file not shown.
Binary file added out/production/module/Main.class
Binary file not shown.
Binary file added out/production/module/Shirt.class
Binary file not shown.
Binary file added out/production/module/Top.class
Binary file not shown.

0 comments on commit 387d607

Please sign in to comment.