ADAPTOR CLASS
Adapter class
- Adapter class is a simple java class that implements an interface with only EMPTY implementation .
- Instead of implementing interface if we extends Adapter class ,we provide implementation only for require method
ex
instead of implementing Servlet(I) if we extends GenericServlet(AC) then we provide implementation for Service()method we are not require to provide implementation for remaining method..
Generic class Acts as ADAPTER class for Servlet(I).
eg -
class test extends AdapterX{
m3()
{ }
}
Comments
Post a Comment