vendredi 21 août 2015

Calling Interface or abstract class method through its instance

I want to ask that if i have a interface or abstract class MyClass and it has a method getInstance() so through which (interface or abstract class ) I can do the following.

MyClass obj=MyClass.getInstance()

Thanx in Advance!

Aucun commentaire:

Enregistrer un commentaire