Selaa lähdekoodia

Update README.md

Git-Leon 6 vuotta sitten
vanhempi
commit
a3a8e97b28
No account linked to committer's email
1 muutettua tiedostoa jossa 27 lisäystä ja 24 poistoa
  1. 27
    24
      README.md

+ 27
- 24
README.md Näytä tiedosto

@@ -3,27 +3,30 @@
3 3
 * **Purpose:** To demonstrate [multi-inheritence design issues](https://www.geeksforgeeks.org/java-and-multiple-inheritance/)
4 4
 
5 5
 
6
-* Consider a system in which
7
-	* All `NoiseMaker` can `makeNoise`
8
-	* All `Animal` are `NoiseMaker`
9
-		* All `Horse` are `Animal`
10
-		* All `Dog` are `Animal`
11
-
12
-	* All `Rider` can `mount` and `dismount` a `Rideable` object.
13
-
14
-	* All `Vehicle` are `NoiseMaker` and `Rideable`
15
-		* All `FarmVehicle` can `harvest` a `Produce`
16
-			* All `Tractor` are `FarmVehicle`
17
-			* All `CropDuster` are `FarmVehicle`
18
-
19
-		* All `Aircraft` can  `fly`
20
-			* All `Plane` are `Aircraft` which can `cruise`
21
-			* All `Jet` are `Aircraft` which can `zoom`
22
-
23
-	* All `Produce` can `yield` an `Edible` object.
24
-		* All `CornStalk` can `yield` a `EarCorn`
25
-		* All `TomatoPlant` can `yield` a `Tomato`
26
-
27
-	* All `Person` can `eat` an `Edible` object and `makeNoise`.
28
-	* All `Farmer` are `Rider` and `Person`
29
-		* `Froilan` is a `Farmer` who has 
6
+* Consider a system in which 
7
+	* `NoiseMaker` can `makeNoise`
8
+	* `Animal` is a `NoiseMaker`
9
+		* `Horse` is a `Animal`
10
+		* `Dog` is a `Animal`
11
+
12
+	* `Rider` can `mount` and `dismount` a `Rideable` object.
13
+
14
+	* `Vehicle` are `NoiseMaker` and `Rideable`
15
+		* `FarmVehicle` can `harvest` a `Produce`
16
+			* `Tractor` are `FarmVehicle`
17
+			* `CropDuster` are `FarmVehicle`
18
+
19
+		* `Aircraft` can  `fly`
20
+			* `Plane` are `Aircraft` which can `cruise`
21
+			* `Jet` are `Aircraft` which can `zoom`
22
+
23
+	* `Produce` can `yield` an `Edible` object.
24
+		* `CornStalk` can `yield` a `EarCorn`
25
+		* `TomatoPlant` can `yield` a `Tomato`
26
+
27
+	* `Person` can `eat` an `Edible` object and `makeNoise`.
28
+	* `Farmer` are `Rider` and `Person`
29
+
30
+
31
+* Consider 
32
+	* `Froilan` is a `Farmer` who has 5 horses