Unlimited Plugins, WordPress themes, videos & courses! Unlimited asset downloads! From $16.50/m
by
Lessons:24Length:2.4 hours
  • Overview
  • Transcript

3.3 Pull Up Method

The Pull Up Method is a great way of eliminating duplicate code in classes that inherit from a common class. All you do is extract the piece of duplicate code into the base class so that the children classes take use of it properly. This is a great way to use inheritance better.