Home Help Java A Java Glossary : Adapter Classes
Questions:Ask|Latest


 
 

Share on Google+Share on Google+

Java Glossary : Adapter Classes

Advertisement
In java programming language, adapter class is used to implement an interface having a set of dummy methods.

Java Glossary : Adapter Classes

     

In java programming language, adapter class is used to implement an interface having a set of dummy methods. The developer can then further subclass the adapter class so that he can override to the methods he requires. Implementing an interface directly, requires to write all the dummy methods. In general an adapter class is used to rapidly construct your own Listener class to field events.

Java programming language also have a design adapter named adapter. The Adapter design pattern is also used to join to two unrelated interfaces so that can work together. The joint between these two interfaces is termed as Adapter. This is something like the conversion of interface of one class into interface. This is done by using an Adapter.

Advertisement

Liked it!  Share this Tutorial


Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Posted on: April 3, 2006

Ask Questions?    Discuss: Java Glossary : Adapter Classes  

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 
Comments
DMCA.com