views:

32

answers:

2

I've seen impl used as namespaces and as a class suffix in a number of different .net and Java libraries. I just want to know what it means and why it is used.

+1  A: 

It's short for "implementation". Generally it's used when the parent package contains abstract classes, interfaces, and perhaps some factory classes which are the main point of access, and then the impl package contains various concrete implementations of those abstract classes and interfaces.

bemace
+4  A: 

It stands for Implementation.

It's a Java convention.

Often in java (particularly J2EE) you will get an object from some factory, and then use it.

That object's type is often given to you as an interface, so that you don't need to know the actual class, just its methods.

An impl class is usually a class that implements the behaviour described by one of these interfaces.

TreyE
[ATL](http://en.wikipedia.org/wiki/Active_Template_Library) also likes to uses `Impl` as a suffix in COM class implementation modules (to differentiate them from the library's entry point module).
Frédéric Hamidi