why client call interface instead of class in ejb

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • abhilash12
    New Member
    • Oct 2007
    • 19

    why client call interface instead of class in ejb

    why client call interface instead of class in ejb
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    Originally posted by abhilash12
    why client call interface instead of class in ejb
    So that when the implementation( read class) changes, the client does not have to be changed as well. All the client knows about is the interface and that rarely changes.
    Remember the golden rule "Program to the interface and not to the implementation"

    Comment

    Working...