• Post Reply Bookmark Topic Watch Topic
  • New Topic

Why ClassLoader abstract class NOT Interface  RSS feed

 
Kousik Majumder
Ranch Hand
Posts: 241
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,

Can somebody clarify me Why ClassLoader class is abstract class NOT Interface?

Thank you,
Kousik
 
Omar Al Kababji
Ranch Hand
Posts: 357
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Because it implements many methods of this class, if it was an interface you would be forced to implement every single method in it, which is not exactly what you want (unless you have a lot of time to waste). if you look at this class API you find many implemented methods
 
Kousik Majumder
Ranch Hand
Posts: 241
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you...I really overloked those methods. I had only the abstract method in my mind.

Thanks again....
 
Omar Al Kababji
Ranch Hand
Posts: 357
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are welcome Kousik, remember that Object Oriented & Design patterns are very important, try to follow them as much as possible to write clean and great code.

Omar
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!