From 8bfd9227ce5768f8ce55c5096e174b3b218c6539 Mon Sep 17 00:00:00 2001 From: Alan George <45034425+SCOTTY0101@users.noreply.github.com> Date: Thu, 8 Jun 2023 18:18:28 +1000 Subject: [PATCH] Update 17_oop.php Uppercase letter changed to "class Employee" and "new Employee". --- 17_oop.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/17_oop.php b/17_oop.php index bfd5295..24d520b 100644 --- a/17_oop.php +++ b/17_oop.php @@ -61,7 +61,7 @@ function __destruct() { It is achieved by creating a new class that extends an existing class. */ -class employee extends User { +class Employee extends User { public function __construct($name, $email, $password, $title) { parent::__construct($name, $email, $password); $this->title = $title; @@ -72,5 +72,5 @@ public function getTitle() { } } -$employee1 = new employee('John','johndoe@gmail.com','123456','Manager'); -echo $employee1->getTitle(); \ No newline at end of file +$employee1 = new Employee('John','johndoe@gmail.com','123456','Manager'); +echo $employee1->getTitle();