File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ OOP in a nutshell in PHP
7
7
- [ Method Chaining] ( #method-chaining )
8
8
- [ Access Modifier] ( #access-modifier )
9
9
- [ Magic Method and Constant] ( #magic-method-and-constant )
10
- - [ Inheritence ] ( #inheritence )
10
+ - [ Inheritance ] ( #inheritance )
11
11
- [ Override] ( #override )
12
12
- [ Abstract Class and Method] ( #abstract-class-and-method )
13
13
- [ Interface] ( #interface )
@@ -222,7 +222,7 @@ $car1 = new Car('Mercedes');
222
222
echo $car1->getCarModel();
223
223
```
224
224
225
- ## Inheritence
225
+ ## Inheritance
226
226
227
227
- In inheritance, we have a parent class with its own methods and properties, and a child class (or classes) that can use the code from the parent.
228
228
@@ -358,7 +358,7 @@ echo $toyota1->getColor();//beige
358
358
359
359
- Also interfaces are a special case of abstract classes where ALL methods are abstract (blank body).
360
360
- A class can implements (not extends) more than one interface, thereby, we can simulate multiple inheritances in PHP.
361
- - Implementing a inteface ensures that all functions inside the interface is implemented by the class
361
+ - Implementing a interface ensures that all functions inside the interface is implemented by the class
362
362
- An interface can extend another interface and thereby it inherits all functions declared with this interface.
363
363
- Interfaces can have constants, but not properties
364
364
You can’t perform that action at this time.
0 commit comments