A PIE

There are 4 basic features that an object oriented language has.

Here is an easy way to remember them:

“A Pie”

Abstraction

Polymorphism

Inheritance

Encapsulation

Abstraction means that only necessary information is exposed outside the class, and the details of how it does what it does are hidden away from the outside.

Polymorphism means that a derived class can take the place of a base class, (Liskov substitution principle), and that subclasses can override the behavior of virtual methods in their parent class to change their implementation.

Inheritance means that an object or class is based on another object or class using the same implementation. This means that the child class inherits all the properties and behaviors of the parent.

Encapsulation means that both the data and the methods which work on the data are contained together.

Making progress in Laravel

I’m making good progress in learning Laravel.

I just wrote a service provider, and then created a Facade for it. The concepts are coming together nicely. Here are a few of the pages I used to help figure this out:

I like the way that Facades work. They make the code cleaner.