< Back
Page 12 of 12
This chapter is from the book
Summary
In this chapter, you’ve gone from working with single variable instances to working with complex object hierarchies. You’ve looked at various approaches to sharing behaviors, encapsulating data, and controlling value states.
The next chapter looks at how to share the classes using packages and libraries.
You should Now Know
- The difference between a local variable and a class field
- About function scope and class scope
- How class namespace works, and how it interacts with lexical scope
- How to define a class using generative constructors and parameter initialization
- How to define a class using factory constructors
- What the factory keyword implies about object instantiation
- How to define static functionality
- The impact of variable assignments using the keywords final and const
- How to define class taxonomies using classical inheritance
- The implications of using the abstract keyword on classes and methods
- What polymorphism is and how to leverage it
- How to share behavior using inheritance, mixins, and interfaces
< Back
Page 12 of 12