OOP

Zend PHP 7 Certification – OOP – Interfaces

This post covers the Interfaces section of the OOP chapter when studying for the Zend PHP 7 Certification.
Object interfaces allow you to create code which specifies which methods a class must implement, without having to define how these methods are handled.
Interfaces are defined using the interface keyword, in the same way as a …

Zend PHP 7 Certification – OOP – Inheritance

This post covers the Inheritance section of the OOP chapter when studying for the Zend PHP 7 Certification.
When you extend a class in most programming languages, the subclass inherits all of the public and protected methods from the parent class. Unless a class overrides those methods, they will retain their original functionality.
In PHP, …

Zend PHP 7 Certification – OOP – Instance Methods and Properties

This post covers the Instance Methods and Properties section of the OOP chapter when studying for the Zend PHP 7 Certification.
Class member variables are called properties. You may also see them referred to using other terms such as attributes or fields, but properties are the given name to describe variables belonging to a class.

Zend PHP 7 Certification – OOP – Instantiation

This post covers the Instantiation section of the OOP chapter when studying for the Zend PHP 7 Certification.
Object-oriented programming is a style of coding that allows developers to group similar tasks into classes. This allows code to be easily maintained and you can re-use code from classes without the need of duplication.
Objects can …