Dependency Injection

  • In dependency injection, resources needed by components are set by initializing code external to the component.
  • We need to provide setter and getter methods of resource or initialize it in constructor

No comments:

Post a Comment