Translator| Why do we need a translator?

Submitted by manoj on

Translator (computer program) that is used to translates one language to lower-level language , as computer can not understand  high-level language so, required to translate into lower-level language.

computer  understand low level language.

translator provide a interface to computer to read high level language.

Types of translator

There are two types of translator are

  1. Compiler

     Translate from high-level language to lower-level language

    Low level example : Assembly language, object code or machine code

Dependency Injection (DI)

Submitted by admin on

Dependency Injection (DI) is a design pattern/technique that removes dependencies from computer code, making the application easier to maintain and test.

injecting a object into another object i.e. dependency injection

Ways of Injecting dependencies

Dependency Injection can be done in two ways.

  1. Using setter injection
  2. Using constructOr injection

inversion of control vs dependency injection

 

Subscribe to General Purpose