PHP: Object-Oriented Programming

  • 0
  • 3-4 hours worth of material
  • LinkedIn Learning
  • English
PHP: Object-Oriented Programming

Course Overview

Learn how to use object-oriented programming principles in PHP.

PHP developers can benefit from the efficient, well-organized, reusable, and easy-to-understand code that object-oriented programming offers. In this intermediate-level course, Kevin Skoglund introduces object-oriented programming (OOP) principles for PHP. Kevin shows how to define a class, add properties and methods, and create new instances. He demonstrates how to use class inheritance to share, extend, and override class behavior, and how to control access to the properties and methods of a class. He explains the difference between static and late static bindings, and shows how to customize the PHP "magic" methods, which are triggered automatically. In the final chapter, he shows how to add object-oriented code to a real-world PHP website, so you can see OOP techniques in action.

Course Circullum

Introduction
  • Welcome
  • How to use the exercise files
1. Overview and Project Setup
  • What is OOP?
  • Project setup
2. Object Basics
  • Define a class
  • Instances
  • Class properties
  • Class methods
  • Refer to an instance
  • Challenge: Properties and methods
  • Solution: Properties and methods
3. Class Inheritance
  • What is inheritance?
  • Define a subclass
  • Extend and override
  • Challenge: Inheritance
  • Solution: Inheritance
4. Object Access Control
  • Visibility modifiers
  • Beware of overloading
  • Setter and getter methods
  • Challenge: Access control
  • Solution: Access control
5. Static Properties and Methods
  • The static modifier
  • Inherited static behaviors
  • Class constants
  • Refer to the parent class
  • Late static bindings
  • Challenge: Static references
  • Solution: Static references
6. Magic Methods
  • Constructor method
  • Constructor arguments
  • Destructor method
  • Clone method
  • Assignment by reference
  • Compare objects
  • Autoload undefined classes
7. A PHP OOP Project
  • Project introduction
  • Challenge: The bicycle class
  • Solution: The bicycle class
  • From instances to HTML
  • Read from a CSV file
  • Improve parseCSV
  • From a CSV file to instances
Conclusion
  • Next steps
out of 5.0
5 Star 85%
4 Star 75%
3 Star 53%
1 Star 20%

Item Reviews - 3

Submit Reviews

Free Trial Available

This Course Include:
Introduction
  • Welcome
  • How to use the exercise files
1. Overview and Project Setup
  • What is OOP?
  • Project setup
2. Object Basics
  • Define a class
  • Instances
  • Class properties
  • Class methods
  • Refer to an instance
  • Challenge: Properties and methods
  • Solution: Properties and methods
3. Class Inheritance
  • What is inheritance?
  • Define a subclass
  • Extend and override
  • Challenge: Inheritance
  • Solution: Inheritance
4. Object Access Control
  • Visibility modifiers
  • Beware of overloading
  • Setter and getter methods
  • Challenge: Access control
  • Solution: Access control
5. Static Properties and Methods
  • The static modifier
  • Inherited static behaviors
  • Class constants
  • Refer to the parent class
  • Late static bindings
  • Challenge: Static references
  • Solution: Static references
6. Magic Methods
  • Constructor method
  • Constructor arguments
  • Destructor method
  • Clone method
  • Assignment by reference
  • Compare objects
  • Autoload undefined classes
7. A PHP OOP Project
  • Project introduction
  • Challenge: The bicycle class
  • Solution: The bicycle class
  • From instances to HTML
  • Read from a CSV file
  • Improve parseCSV
  • From a CSV file to instances
Conclusion
  • Next steps
  • Provider:LinkedIn Learning
  • Certificate:Certificate Available
  • Language:English
  • Duration:3-4 hours worth of material
  • Language CC:

Do You Have Questions ?

We'll help you to grow your career and growth.
Contact Us Today