Pages

Interfaces and Abstract classes driven development


Interfaces: refer the diagram
Abstract class:
·       Instead of duplicating the Resource methods (methods which are having same logic) across the multiple Resource classes in an application development we should go for abstract class.
·       Whatever the common Resource methods are there, we should declare all those methods in an abstract classes and we should reuse those methods in Resource classes.
·       Because of this approach, the Resource methods will not get duplicated across the Resource classes.

No comments:

Post a Comment