mirror of
https://github.com/restoreddev/phpapprentice.git
synced 2025-07-30 19:40:43 +02:00
Continuing transition to hugo
This commit is contained in:
@@ -1,3 +1,11 @@
|
||||
+++
|
||||
title = "Classes: Inheritance"
|
||||
description = "Extend your objects"
|
||||
tags = ["php", "extend", "inheritance"]
|
||||
slug = "classes-inheritance"
|
||||
previous = "classes.html"
|
||||
next = "classes-visibility.html"
|
||||
+++
|
||||
In PHP, a class can extend another class, inheriting the parent class'
|
||||
properties and methods. To make a class a child of another, use the `extends`
|
||||
keyword after the class name.
|
||||
|
Reference in New Issue
Block a user