Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Adapter versus abstract classes

807606Mar 18 2007 — edited Mar 18 2007
Hi All,

I've an interface defining five methods,butt i want to use only two of them in my class. As per my knowledge, i can do it in two ways, either i can define these mehods in an abstract class and then can use this extend this abstract class, in the second method which i came to know is the best way to do this is throught adapter class. I'm confused between difference between these two? I don't know much about adapter classes?

Hope to listen from you very soon.

Kind regards...
CrazyAboutJava
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 15 2007
Added on Mar 18 2007
3 comments
940 views