Designing Interfaces in PHP

Product type
Logo Treehouse
Provider rating: starstarstarstarstar_border 8.3 Treehouse has an average rating of 8.3 (out of 3 reviews)

Need more information? Get more details on the site of the provider.

Description

Booking a course with Treehouse gives you access to the entire catalogue for 1 entire year! Over 30 tracks and 1000 courses and whorkshops are then available to you on 24 different subjects.

Book a course with TreeHouse and get a 1 year access to the entire catalogue ! 

An interface is a type of contract that assures that certain abilities are available on on a particular object class. We'll write and extend multiple interfaces, then implement them to design and match functionality. Interfaces do not store any implementation details themselves. To share implementation details between classes, we harness the power of inheritance. Abstract classes prevent a parent class from being directly instantiated, while at the same time defining methods that MUST be implemented in any extending children. This course will combine interface contracts with class hierarchy to leverage the benefits of each concept. We'll explain the differences between interfaces and abstrac…

Read the complete description

Frequently asked questions

There are no frequently asked questions yet. If you have any more questions or need help, contact our customer service.

Didn't find what you were looking for? See also: PHP, PHP, Programming (general), IT Security, and Web Accessibility.

Booking a course with Treehouse gives you access to the entire catalogue for 1 entire year! Over 30 tracks and 1000 courses and whorkshops are then available to you on 24 different subjects.

Book a course with TreeHouse and get a 1 year access to the entire catalogue ! 

An interface is a type of contract that assures that certain abilities are available on on a particular object class. We'll write and extend multiple interfaces, then implement them to design and match functionality. Interfaces do not store any implementation details themselves. To share implementation details between classes, we harness the power of inheritance. Abstract classes prevent a parent class from being directly instantiated, while at the same time defining methods that MUST be implemented in any extending children. This course will combine interface contracts with class hierarchy to leverage the benefits of each concept. We'll explain the differences between interfaces and abstract classes, and give you the knowledge you need to build and implement both in your own projects.

What you will learn

  • Writing an Interface
  • Implementing Interfaces
  • Extending Interfaces
  • Matching Interfaces
  • Abstract Classes

For best results, we recommend first taking these prerequisite courses…Extending Object-Oriented PHP. Those courses are included in the catalogue of TreeHouse. Enrol for 1 course and get access to the entire catalogue for 1 year

Steps you will go though during this course

Introducing Interfaces

An interface is a type of contract that assures that the enforces certain abilities are available on on a particular object class. Interfaces have continued to gain popularity in PHP as the use of package management through composer has become the standard. By having standard interfaces, package maintainers can more easily build and maintain packages for common tasks such as Logging, caching and http messages.

Using Interfaces

Often when working with interfaces, you will be using existing interfaces. Besides the interfaces that are built-in to PHP, most frameworks include their own interfaces. These interfaces work as a kind of guaranteed documentation for using individual components. By combining multiple interfaces we can build powerful components that can be easily understood by the rest of our application.

Abstract Classes

We'll use an abstract class to implement some base properties and methods while still requiring additional functionality.

Plus, you get an access to all courses and tracks of TreeHouse for an entire year !

There are no reviews yet.
  • View related products with reviews: PHP and PHP.

Share your review

Do you have experience with this course? Submit your review and help other people make the right choice. As a thank you for your effort we will donate $1.- to Stichting Edukans.

There are no frequently asked questions yet. If you have any more questions or need help, contact our customer service.