Inheritance of Interface implementation in Java?

No. What you're describing is more akin to duck typing.

No. What you're describing is more akin to duck typing. Does a subclass of class A which implements interface I inherits the conformance to that interface, or should it also declare itself as implementing I?

Assuming you mean: public class A implements I { /* ... */ } public class B extends A { /* ... */ } In this case, B implements I.

", the answer is "no". Class B conforms to its parent and need not redeclare the interface. The best way to answer questions like these is to experiment - try it and see.

" point -- something well worth conveying more regularly. – delfuego Dec 24 '09 at 19:51.

No, interfaces must be explicitly implemented. Interfaces implemented by base classes are by extension always implemented by derived classes.

As a corollary, an abstract class that implements an interface may defer the implementation to a concrete subclass: java.sun.com/docs/books/tutorial/java/Ia... – trashgod Dec 24 '09 at 21:48.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions