Skip to content
Snippets Groups Projects
Commit 7e5e2ec0 authored by Jesse Laine's avatar Jesse Laine
Browse files

Alustava versio tietojen täyttämisestä.

parent e110efbc
No related branches found
No related tags found
No related merge requests found
......@@ -93,6 +93,19 @@ public class Taiteilija {
}
/**
*
*/
public void tayta() {
nimi = "Hiroshige";
syntynyt = 1797;
kuollut = 1858;
ika = 61;
kansalaisuus = "Japani";
tyylisuunta = "Ukiyo-e";
}
public static void main(String[] args) {
Taiteilija hiroshige = new Taiteilija();
Taiteilija edward = new Taiteilija();
......@@ -103,8 +116,8 @@ public class Taiteilija {
hiroshige.tulosta(System.out);
edward.tulosta(System.out);
// hiroshige.tayta();
// edward.tayta();
hiroshige.tayta();
edward.tayta();
hiroshige.tulosta(System.out);
edward.tulosta(System.out);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment