Just a simple syntax question. Suppose we have an interface which we will call IMyClass, and an abstract class that implements which we will call AbstractMyClass and is declared as follows:
public abstract class AbstractMyClass implements IMyClass {
}
Now when we create a concrete implementation of MyClass which we will call... MyClass!, there are two ways in which we can declare it:
public class MyClass extends AbstractMyClass {
}
and
public class MyClass extends AbstractMyClass implements IMyClass {
}
What's best here? I'm supposing the answer to this is just a matter of preference but just wanted to hear some thoughts on this.
Thanks in advance,
Joseph.