Skip to content

Commit 68a3e41

Browse files
committed
add back to content link
1 parent 1d3336b commit 68a3e41

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

β€ŽREADME.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ echo $bmw->hello(); // beep
7070
echo "<br />";
7171
echo $mercedes->hello(); // beep
7272
```
73+
[πŸ” Back to contents](#table-of-contents)
7374

7475
### $this keyword
7576

@@ -113,6 +114,7 @@ $mercedes->comp = "Mercedes Benz";
113114
echo $bmw->hello();
114115
echo $mercedes->hello();
115116
```
117+
[πŸ” Back to contents](#table-of-contents)
116118

117119
### Method Chaining
118120

@@ -154,6 +156,7 @@ $tank = $bmw->fill(10)->ride(40)->tank;
154156
// Print the results to the screen.
155157
echo "The number of gallons left in the tank: " . $tank . " gal.";
156158
```
159+
[πŸ” Back to contents](#table-of-contents)
157160

158161
### Access Modifier
159162

@@ -189,6 +192,7 @@ $mercedes->setModel("Mercedes benz");
189192
//Gets the car’s model
190193
echo $mercedes->getModel();
191194
```
195+
[πŸ” Back to contents](#table-of-contents)
192196

193197
### Magic Method and Constant
194198

@@ -221,6 +225,7 @@ $car1 = new Car('Mercedes');
221225

222226
echo $car1->getCarModel();
223227
```
228+
[πŸ” Back to contents](#table-of-contents)
224229

225230
## Inheritance
226231

@@ -261,6 +266,7 @@ $sportsCar1->setModel('Mercedes Benz');
261266
// Get the class model name
262267
echo $sportsCar1->hello();
263268
```
269+
[πŸ” Back to contents](#table-of-contents)
264270

265271
### Override
266272

@@ -306,6 +312,7 @@ $sportsCar1 = new SportsCar();
306312
// Get the result of the hello method
307313
echo $sportsCar1->hello();
308314
```
315+
[πŸ” Back to contents](#table-of-contents)
309316

310317
### Abstract Class and Method
311318

@@ -353,6 +360,7 @@ $toyota1->setTankVolume(10);
353360
echo $toyota1->calcNumMilesOnFullTank();//330
354361
echo $toyota1->getColor();//beige
355362
```
363+
[πŸ” Back to contents](#table-of-contents)
356364

357365
### Interface
358366

@@ -412,6 +420,7 @@ class miniCar implements Car, Vehicle
412420
}
413421
}
414422
```
423+
[πŸ” Back to contents](#table-of-contents)
415424

416425
### Polymorphism
417426

@@ -467,6 +476,7 @@ $rect = new Rectangle(3, 4);
467476
echo $circ->calcArea();
468477
echo $rect->calcArea();
469478
```
479+
[πŸ” Back to contents](#table-of-contents)
470480

471481
### Type Hinting
472482

@@ -529,6 +539,7 @@ $car1->setHasSunRoof(true);
529539
$car1->setNumberOfDoors(4);
530540
$car1->setPrice(1234.56);
531541
```
542+
[πŸ” Back to contents](#table-of-contents)
532543

533544
### Static Method and Property
534545

@@ -558,6 +569,7 @@ echo Utilis::$numCars;
558569
Utilis::addToNumCars(-1);
559570
echo Utilis::$numCars;
560571
```
572+
[πŸ” Back to contents](#table-of-contents)
561573

562574
### Trait
563575

@@ -599,4 +611,5 @@ $o = new MyHelloWorld();
599611
$o->sayHello();
600612
$o->sayWorld();
601613
$o->sayExclamationMark();
602-
```
614+
```
615+
[πŸ” Back to contents](#table-of-contents)

0 commit comments

Comments
Β (0)