vendredi 4 mai 2018

What is the use case scenario for interface type method which return type is same name where its belongs to?

I have seen somewhere while reviewing a code pieces but i had no chance to ask the use cases and I couldn't figure out how this interface will be implemented.When you override the method A() then you should return someting that implements Feature.Example below,

 public interface Feature
 {  
        public Feature A(); 
 }

Any advice would be greate. Thanks in advance..

Aucun commentaire:

Enregistrer un commentaire