Android Fragments and Static Factory Methods
Typically when we create a class, we create one or more constructors for the class: We then use the “new” operator to instantiate the class and pass in an argument: This works in the more common scenarios but isn’t flexible enough in others. What if we needed to: Return an subclass of the class instead […]