Skip to content

Commit 18ad122

Browse files
committed
Added links to dl code on inheritance.
1 parent 9284d32 commit 18ad122

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

source/lectures/oop/inheritance.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Consider the following class:
2424

2525
with the following implementation:
2626

27-
```
27+
```{download="./code/projects/Vehicle.zip"}
2828
!include code/projects/Vehicle/Vehicle/Vehicle.cs
2929
```
3030

@@ -33,7 +33,7 @@ Note that no other vehicle have a fork length, so it does not make sense to add
3333

3434
A possible implementation is as follows:
3535

36-
```
36+
```{download="./code/projects/Vehicle.zip"}
3737
!include code/projects/Vehicle/Vehicle/Bike.cs
3838
```
3939

@@ -66,7 +66,7 @@ Observe that the `ToString` is indicated in the `Bike` class: this is an indicat
6666
Note that inheritance can be "chained", as `Bike` could itself be the base class for a `Bicycle` class that could have e.g. a `saddleType` attribute (noting that a motorbike does not have a saddle, but a seat).
6767
We could then obtain a code as follows:
6868
69-
```
69+
```{download="./code/projects/Vehicle.zip"}
7070
!include code/projects/Vehicle/Vehicle/Bicycle.cs
7171
```
7272

0 commit comments

Comments
 (0)