Skip to content

Commit 1d3336b

Browse files
committed
update readme
1 parent b1b3b76 commit 1d3336b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ OOP in a nutshell in PHP
77
- [Method Chaining](#method-chaining)
88
- [Access Modifier](#access-modifier)
99
- [Magic Method and Constant](#magic-method-and-constant)
10-
- [Inheritence](#inheritence)
10+
- [Inheritance](#inheritance)
1111
- [Override](#override)
1212
- [Abstract Class and Method](#abstract-class-and-method)
1313
- [Interface](#interface)
@@ -222,7 +222,7 @@ $car1 = new Car('Mercedes');
222222
echo $car1->getCarModel();
223223
```
224224

225-
## Inheritence
225+
## Inheritance
226226

227227
- 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.
228228

@@ -358,7 +358,7 @@ echo $toyota1->getColor();//beige
358358

359359
- Also interfaces are a special case of abstract classes where ALL methods are abstract (blank body).
360360
- 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
362362
- An interface can extend another interface and thereby it inherits all functions declared with this interface.
363363
- Interfaces can have constants, but not properties
364364

0 commit comments

Comments
 (0)