fixed image links
All checks were successful
Build and Deploy MkDocs / deploy (push) Successful in 13s
All checks were successful
Build and Deploy MkDocs / deploy (push) Successful in 13s
This commit is contained in:
@@ -91,7 +91,7 @@ public class Compound {
|
||||
}
|
||||
```
|
||||
|
||||

|
||||

|
||||
|
||||
*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 {
|
||||
}
|
||||
```
|
||||
|
||||

|
||||

|
||||
|
||||
**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.
|
||||
|
||||

|
||||

|
||||
|
||||
**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.
|
||||
|
||||
Reference in New Issue
Block a user