|OOP| Learn “Factory Pattern” from Android Telephony

Factory pattern is a basic pattern in grant software framework.
We create object, parent, with common interface to create new type of object.
The common interface is a static member-function (static factory method) which creates & returns instances, hiding the details of children.

The following will show a snappiest code of Android Q.