Factory Methods
Factory method is just a fancy name for a method that instantiates objects.
Ex: In Singleton Design Pattern, we use a static synchronized method for instantiating object of that Singleton class.
Marker Interface or Tagged Interface
Interface without data-members and methods are called Marker Interface or Tagged Interface.
Ex: Serializable Interface
No comments:
Post a Comment