-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Odpowiedź do lekcji pierwszej - klasa Kot zawierająca podstawowe info…
…rmacje o kocie (imię, datę urodzenia, wagę, imię opiekuna) oraz metodę przedstawSie()
- Loading branch information
Showing
6 changed files
with
55 additions
and
0 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -6,3 +6,4 @@ pom.xml.next | |
release.properties | ||
dependency-reduced-pom.xml | ||
buildNumber.properties | ||
*.DS_Store |
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,6 @@ | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<groupId>pl.kobietydokodu</groupId> | ||
<artifactId>koty</artifactId> | ||
<version>0.0.1-SNAPSHOT</version> | ||
</project> |
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,48 @@ | ||
package pl.kobietydokodu.koty.domain; | ||
|
||
import java.util.Date; | ||
|
||
public class Kot { | ||
|
||
private String imie; | ||
private Date dataUrodzenia; | ||
private Float waga; | ||
private String imieOpiekuna; | ||
|
||
public String przedstawSie() { | ||
return "Cześć, jestem "+imie+", urodziłem się "+dataUrodzenia+", ważę "+waga+", a opiekuje się mną " + imieOpiekuna; | ||
} | ||
|
||
public String getImie() { | ||
return imie; | ||
} | ||
|
||
public void setImie(String imie) { | ||
this.imie = imie; | ||
} | ||
|
||
public Date getDataUrodzenia() { | ||
return dataUrodzenia; | ||
} | ||
|
||
public void setDataUrodzenia(Date dataUrodzenia) { | ||
this.dataUrodzenia = dataUrodzenia; | ||
} | ||
|
||
public Float getWaga() { | ||
return waga; | ||
} | ||
|
||
public void setWaga(Float waga) { | ||
this.waga = waga; | ||
} | ||
|
||
public String getImieOpiekuna() { | ||
return imieOpiekuna; | ||
} | ||
|
||
public void setImieOpiekuna(String imieOpiekuna) { | ||
this.imieOpiekuna = imieOpiekuna; | ||
} | ||
|
||
} |
Empty file.
Empty file.
Empty file.