Skip to content

Commit 8e93c6b

Browse files
authored
fixed typos
1 parent 10a8041 commit 8e93c6b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

data/part-9/1-inheritance.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -771,7 +771,7 @@ System.out.println(ollie); // ollie.toString() WORKS
771771

772772
<!-- Oliolla on siis käytössä jokainen sen tyyppiin sekä sen yliluokkiin ja rajapintoihin liittyvä metodi. Esimerkiksi Opiskelija-tyyppisellä oliolla on käytössä Person-luokassa määritellyt metodit sekä Object-luokassa määritellyt metodit. -->
773773

774-
So an object has at its disposal the methods that relate to its type, and also to its superclasses and interfaces. The Student object above offers the methods defined in the the classes Person and Object.
774+
So an object has at its disposal the methods that relate to its type, and also to its superclasses and interfaces. The Student object above offers the methods defined in the classes Person and Object.
775775

776776
<!-- Edellisessä tehtävässä korvasimme Opiskelijan luokalta Henkilö perimän `toString` uudella versiolla. Myös luokka Henkilö oli jo korvannut Object-luokalta perimänsä toStringin. Jos käsittelemme olioa jonkun muun kuin sen todellisen tyypin kautta, mitä versiota olion metodista kutsutaan? -->
777777

@@ -780,7 +780,7 @@ In the last exercise we wrote a new `toString` implementation for Student to ove
780780

781781
<!-- Seuraavassa esimerkissä kahta opiskelijaa käsitellään erityyppisten muuttujien kautta. Mikä versio metodista toString suoritetaan, luokassa Object, Person vai Opiskelija määritelty? -->
782782

783-
In the following example, we'll have two students that we refer to by variables of different types. Which version of the toString method will be executed: the one defined in Objecct, Person, or Student?
783+
In the following example, we'll have two students that we refer to by variables of different types. Which version of the toString method will be executed: the one defined in Object, Person, or Student?
784784

785785
<!-- ```java
786786
Opiskelija olli = new Opiskelija("Olli", "Ida Albergintie 1 00400 Helsinki");

0 commit comments

Comments
 (0)