fixed image links
All checks were successful
Build and Deploy MkDocs / deploy (push) Successful in 13s

This commit is contained in:
John Gatward
2026-03-24 23:17:58 +00:00
parent 8a5cc5c3a9
commit abc8b2452b
2 changed files with 5 additions and 5 deletions

View File

@@ -91,7 +91,7 @@ public class Compound {
}
```
![Image](assets/1.png)
![Image](/lectures/dms/assets/1.png)
*Composition* - The object only exists if the parent object exists, if the parent object is deleted then so is the child object.
The zoo object owns the compound object. If the zoo object is deleted then the compound object is also deleted.
@@ -102,7 +102,7 @@ public class Zoo {
}
```
![Image](assets/2.png)
![Image](/lectures/dms/assets/2.png)
**Inheritance**
A way of forming new classes based on existing classes. Has a "is-a" relationship.
@@ -126,7 +126,7 @@ public class Child extends Parent {
The super keyword called the parent class' constructor.
![Image](assets/3.png)
![Image](/lectures/dms/assets/3.png)
**What is the difference between an abstract class and an interface**
- Java abstract class can have instance methods that implement a default behaviour. May contain non-final variables.