aspose file tools
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Inheritance and implements in abstract class Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Reply Bookmark "Inheritance and implements in abstract class" Watch "Inheritance and implements in abstract class" New topic
Author

Inheritance and implements in abstract class

David Cuesta
Greenhorn

Joined: Nov 07, 2001
Posts: 25
Hi all,
Somebody can explain me how that work?:
interface List extends Collection
...
public abstract class AbstractList
extends AbstractCollection
implements List
...
public class ArrayList
extends AbstractList
implements List, Cloneable, Serializable
...
why ArrayList class declare the implements keyword, don't inherit from AbstractList?

Thanks for all
Thomas Paul
mister krabs
Ranch Hand

Joined: May 05, 2000
Posts: 13974
ArrayList does inherit the List interface but sometimes its nicer to write these things out. That makes it much easier to follow.


Associate Instructor - Hofstra University
Amazon Top 750 reviewer - Blog - Unresolved References - Book Review Blog
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Inheritance and implements in abstract class
 
Similar Threads
Collection
Interfaces
ArrayList implements List Interface
Inheritance in List Interface
ArrayLists Imp