In this chapter, we will cover the following recipes:
Testing and converting types
Comparing two objects
Using a factory constructor
Building a singleton
Using reflection
Using mixins
Using annotations
Using the call method
Using noSuchMethod
Creating toJSON and fromJSON methods in your class
Creating common classes for client and server apps