Autoplay
Autocomplete
Previous Lesson
Complete and Continue
Learn PHP OOP
Introduction
Introduction to the Course (4:40)
Course Prerequisite (0:49)
Download Course Materials
OOP Basics
Objective: What you'll learn in this Section (0:58)
What is OOP? (18:47)
What is Class? (10:52)
How to Define a Class (11:09)
What is Property and Methods? (6:59)
What is Objects? (5:23)
How to Define Objects (4:49)
Define Methods with Parameters and Return Value (6:27)
Use case of Users with Class and Objects (7:14)
Project: Calculate Employee Salary (11:13)
Exercise 1: Create a Bank Class, Object, Property and Methods (10:05)
Exercise 2: Create a Files Class, Object, Property and Methods (6:03)
Assignment: Create a Student Class, Object, Property and Methods (1:41)
Quiz: OOP Basics
Summary: What you have learned in this Section (1:02)
$this keyword
Objective: What you'll learn in this Section (0:44)
What is $this keyword? (3:58)
How to use $this keyword (8:51)
Exercise 1: Write a Student Class using $this and Access Properties and Methods. (7:14)
Quiz: $this Keyword
Assignments: Write a Calculator Class using $this Keyword (0:59)
Summary: What you have learned in this Section (0:19)
Constructor and Destructor
Objective: What you'll learn in this Section (0:41)
What is Constructor? (4:56)
Define and Call Constructor (5:35)
Purpose of Constructor (3:28)
Initialize the Properties with Constructor (5:38)
What is Destructor? (1:56)
Define and Call Destructor (2:11)
Purpose of Destructor (1:38)
Project: Improve Employee Class with Constructor (3:39)
Exercise 1: Create Files Class with Constructor and Destructor (10:54)
Quiz: Constructor and Destructor
Assignments: Improve the Calculator Class with Constructor and Destructor (0:48)
Resources: Constructor and Destructor
Summary: What you have learned in this Section (0:32)
Chaining Methods and Properties
Objective: What you'll learn in this Section (0:42)
How to Chain Methods and Properties (11:32)
Exercise 1: Implement Chain Method for Posts Class (3:21)
Assignments: Chain the Calculator Operations (0:48)
Summary: What you have learned in this Section (0:26)
Access Modifiers - public and private
Objective: What you'll learn in this Section (0:55)
Understanding Access Modifiers (2:18)
What is public Access Modifiers (4:27)
What is private Access Modifiers (1:52)
How to use private Access Modifiers (6:32)
public vs private Access Modifiers (1:24)
Use Case: Improve Employee Class with Access Modifiers (5:46)
Exercise 1: Create the Bank Class with private Modifiers (6:15)
Quiz: public and private Modifiers
Assignment: public and private Modifiers (0:54)
Resources: public and private Modifiers
Summary: What you have learned in this Section (0:34)
Inheritance
Objective: What you'll learn in this Section (2:01)
What is inheritance? (7:36)
Child Class Inherits from Parent Class (6:46)
Child Class Own Methods and Properties (15:53)
What is protected Access Modifiers (2:16)
protected Access Control Modifier in Inheritance (5:15)
Overriding: Child Class Override Parent Class Methods and Properties (5:22)
Single and Multiple Inheritance (6:13)
Use Case: Course and Lesson Class with Inheritance Concept (4:05)
Exercise 1: Show Inheritance Concept with Animal Class (8:34)
Quiz: Inheritance
Assignment: Create Father and Son Class and Show Inheritance Concept. (0:36)
Summary: What you have learned in this Section (0:39)
final Keyword
Objective: What you'll learn in this Section (1:07)
What is final keyword? (3:53)
Hiding: Prevent Child Class Overriding Parent Class Methods and Properties (3:01)
Exercise 1: Create a Driver Class and Restrict Inheritance (2:51)
Assignments: Create a Bank and User Class and use final Keyword (0:28)
Summary: What you have learned in this Section (0:40)
Interface
Objective: What you'll learn in this Section (1:25)
What is Interface? (7:27)
How to Declare and Implement Interface (5:45)
Implement more than one Interface to Class (3:59)
Use case of Interface (3:00)
Exercise 1: Create a Phone Interface and Implement iOS Class (3:28)
Quiz: Interface
Assignments: Create Stock Interface and Implement it in the MyStock Class (1:08)
Summary: What you have learned in this Section (0:31)
Abstract Classes and Methods
Objective: What you'll learn in this Section (0:51)
What is Abstract Classes and Methods? (6:11)
How to Declare Classes and Methods as Abstract (4:13)
Use case of Abstract Class (1:41)
Exercise 1: Define Database Class as Abstract Class (4:48)
Quiz: Abstract Classes and Methods
Assignments (1:05)
Summary: What you have learned in this Section
Static Methods and Properties
Objective: What you'll learn in this Section (0:45)
What is Static Methods and Properties (2:36)
Define and Access Static Methods and Properties (3:32)
self:: Keyword (2:13)
Use case of Static Methods and Properties (2:44)
FileHelper Utility Static Class (4:49)
Exercise 1: String Operation Helper Static Class (3:25)
Assignment: FileOperation Class with Static Methods. (1:17)
Summary: What you have learned in this Section (0:40)
Polymorphism
Objective: What you'll learn in this Section (1:02)
What is Polymorphism (5:45)
Example of Polymorphism (4:19)
Exercise 1: Show the example of Polymorphism with Animal Interface and Dog Class (2:52)
Assignments (0:33)
Summary: What you have learned in this Section (0:34)
Data Encapsulation
Objective: What you'll learn in this Section (1:44)
What is Data Encapsulation (6:25)
Example of Data Encapsulation (3:30)
Exercise 1: Show Encapsulation with Student Class (1:45)
Summary: What you have learned in this Section (1:18)
Data Abstraction
Objective: What you'll learn in this Section (0:36)
Example of Data Abstraction (8:03)
Exercise 1: Show Data Abstraction with Company and Employee Class (3:05)
Summary: What you have learned in this Section (0:32)
Overriding
Objective: What you'll learn in this Section (0:36)
What is Overriding (2:43)
Example of Overriding (4:06)
Overloading vs Overriding (4:05)
Exercise 1: Show Override Concept with Doctor and Specialist (4:17)
Summary: What you have learned in this Section (0:33)
Magic Methods
Objective: What you'll learn in this Section (1:04)
What is Magic Methods (4:05)
_set and _get Magic Methods (6:50)
_call Magic Method (2:59)
_toString Magic Method (3:41)
_debuginfo Magic Method (3:11)
Exercise 1: Write Magic Methods (4:01)
Summary: What you have learned in this Section (0:36)
Type Hinting
Objective: What you'll learn in this Section (1:14)
What is Type Hinting (2:34)
Type Hinting Methods with Arrays (6:46)
Type Hinting Methods with Objects (3:26)
Exercise 1: Write a Posts Class to savePost() and fetchPosts() with Proper Type (3:29)
Summary: What you have learned in this Section (0:26)
Dependency Injection
Objective: What you'll learn in this Section (0:35)
What is Dependency Injection (2:21)
Example of Dependency Injection with Tight Coupling (6:34)
Dependency Injection the Right Way (3:36)
Exercise 1: Show an Example of Dependency Injection using University and Student (2:59)
Summary: What you have learned in this Section (0:26)
Working with Objects
Objective: What you'll learn in this Section (1:02)
Cloning Objects (5:36)
Serialize Objects (4:43)
Cache Objects (4:27)
Comparing Objects (7:35)
Iterating Objects (3:14)
Exercise 1: Show how to Copy Objects (4:19)
Summary: What you have learned in this Section (0:29)
Traits and Code Inclusion
Objective: What you'll learn in this Section (1:00)
What are Traits (1:25)
Define and Use Traits (3:29)
Multiple Traits in one Class (3:12)
Exercise 1: Create Trait for Files Operation and use it in Posts Class (3:39)
Summary: What you have learned in this Section (0:29)
AutoLoading and Dynamic Calling
Objective: What you'll learn in this Section (0:43)
What is AutoLoading (1:54)
Autoloading Functions (6:51)
Autoloading Namespaces (4:28)
Exercise 1: Auto Load Functions from src folder (2:02)
Summary: What you have learned in this Section (0:24)
S.O.L.I.D - Object Oriented Principles
S-RP : Single Responsibility Principle (3:51)
O-CP : Open Closed Principle (2:42)
L-SP : Liskov Substitution Principle (3:32)
I-SP : Interface Segregation Principle (2:41)
D-IP : Dependency Inversion Principle (5:00)
Project 1: Database Class with OOP
Creating the Database and Tables (4:41)
Creating the Config File (4:09)
Creating the Database Class (18:56)
Testing the Database Application Class (9:27)
Projects 2: CRUD Operations with Post Class with OOP
Creating the Database and Tables (3:12)
Creating the Config File (4:09)
Selecting Records from DB (4:26)
Inserting Records from DB (7:06)
Updating Records from DB (2:45)
Deleting Records from DB (3:23)
Download Projects
[Download Only] OOP Project 1: Online Ticketing Booking System
[Download Only] OOP Project 2: Tourism Management System
[Download Only] OOP Project 3: Hospital Management System
[Download Only] OOP Project 4: Voting Management System
[Download Only] OOP Project 5: Payroll System
Teach online with
Dependency Injection the Right Way
Lesson content locked
If you're already enrolled,
you'll need to login
.
Enroll in Course to Unlock