-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Riccardo
committed
May 23, 2022
1 parent
e948f28
commit b3238fe
Showing
12 changed files
with
245 additions
and
9 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
package src; | ||
|
||
public class CatTP { | ||
private String name; | ||
private int age; | ||
private String owner; | ||
private boolean isSterilised; | ||
public String getName() { | ||
return name; | ||
} | ||
public void setName(String name) { | ||
this.name = name; | ||
} | ||
public int getAge() { | ||
return age; | ||
} | ||
public void setAge(int age) { | ||
this.age = age; | ||
} | ||
public String getOwner() { | ||
return owner; | ||
} | ||
public void setOwner(String owner) { | ||
this.owner = owner; | ||
} | ||
public boolean isSterilised() { | ||
return isSterilised; | ||
} | ||
public void setSterilised(boolean isSterilised) { | ||
this.isSterilised = isSterilised; | ||
} | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
package src; | ||
|
||
public class CatTPBuilder { | ||
private String name; | ||
private int age; | ||
private String owner; | ||
private boolean isSterilised; | ||
public CatTPBuilder withName(String name) { | ||
this.name = name; | ||
return this; | ||
} | ||
public CatTPBuilder withAge(int age) { | ||
this.age = age; | ||
return this; | ||
} | ||
public CatTPBuilder withOwner(String owner) { | ||
this.owner = owner; | ||
return this; | ||
} | ||
public CatTPBuilder withIsSterilised(boolean isSterilised) { | ||
this.isSterilised = isSterilised; | ||
return this; | ||
} | ||
public CatTP build() { | ||
CatTP cat2 = new CatTP(); | ||
cat2.setName(name); | ||
cat2.setAge(age); | ||
cat2.setOwner(owner); | ||
cat2.setSterilised(isSterilised); | ||
return cat2; | ||
} | ||
} |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package src; | ||
|
||
public class Objets { | ||
public Objets() { | ||
|
||
} | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package src; | ||
|
||
import fr.programme.com.Programme.Personnage; | ||
|
||
public class PersoSwag extends Personnage{ | ||
private int badass; | ||
|
||
public PersoSwag() { | ||
super(15,200,"PersoSwag"); | ||
} | ||
} |
This file contains 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