A
asdf9797
Hi
I did a java test recently and one of the questions was on the subject of
inheritance/ OO design
The idea was there was a "Storable" abstract class which contained a store() method.
There was a IStorable interface
And then there was
class Book extends Storable implements IStorable {
public void save(Book) {
}
}
The question was how to improve the implementation.
What is the current thinking on extending abstract classes ?
Is that the issue?
Thanks,
I did a java test recently and one of the questions was on the subject of
inheritance/ OO design
The idea was there was a "Storable" abstract class which contained a store() method.
There was a IStorable interface
And then there was
class Book extends Storable implements IStorable {
public void save(Book) {
}
}
The question was how to improve the implementation.
What is the current thinking on extending abstract classes ?
Is that the issue?
Thanks,