Last active
August 29, 2015 14:10
-
-
Save tacoberu/c83e79d08e3fe55ea2ca to your computer and use it in GitHub Desktop.
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
@usecase(new Osoba("Adam", "Bernau", 12, 35).toString().equals("Adam Bernau má 12 let a váží 35.0 kg")) | |
public class Osoba | |
{ | |
private String jmeno; | |
private String prijmeni; | |
private int vek; | |
private float vaha; | |
Osoba(String jmeno, String prijmeni, int vek, float vaha) | |
{ | |
this.jmeno = jmeno; | |
this.prijmeni = prijmeni; | |
this.vek = vek; | |
this.vaha = vaha; | |
} | |
public String toString() | |
{ | |
return jmeno + " " + prijmeni + " má " + vek + " let a váží " + vaha + " kg"; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment