137-minute PHP Course
About this Course
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’ll learn
- Writing an Interface
- Implementing Interfaces
- Extending Interfaces
- Matching Interfaces
- Abstract Classes
After starting out in fine art and moving into graphic design, Alena found her passion for programming over 15 years ago and has never looked back. Alena enjoys community and is excited to introduce people to the wonderful world of PHP and the Portland Tech Community.
When not at her computer, Alena enjoys exploring Portland with her friends and family, including her 3 young children. She also enjoys the Symphony, Cooking, Books, Yarn and Yoga.
Content retrieved from: https://teamtreehouse.com/library/designing-interfaces-in-php.