Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed Introduction to Design Patterns!
You have completed Introduction to Design Patterns!
Preview
Let's explore the Creational design pattern category.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
was brought to you by the following
object oriented design principle.
0:00
When we choose to program to the interface
and not the concrete implementation,
0:01
we allow our code to be more extensible.
0:06
The player who follows the proper
protocol can be a part of the game.
0:08
The rule goes on further to state.
0:12
So how do we do that?
0:15
How do we ensure that only create typed
variables that we refer to the interface
0:16
and not the concrete class?
0:20
In loosely typed languages you know
languages where you don't need to specify
0:23
a variable's type like JavaScript or
Python, this isn't really an issue.
0:27
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up