| Author |
Abstract Class not overriding the methods
|
Shasi Sekar
Greenhorn
Joined: Aug 22, 2008
Posts: 23
|
|
I have an interface and a method inside it.
I implement this interface in an abstract class.
no error is shown telling that i need to override the method from the interface.
But when i write a non abstract class it throws an error to over ride the method from the interface.
I am not able to understand why. Can some body help me on this
Thanks in advance
|
 |
Sebastian Janisch
Ranch Hand
Joined: Feb 23, 2009
Posts: 1183
|
|
|
An abstract class is not instantiable. Hence the compiler does not care whether or not you implement the interfaces' methods or not, since if you don't, the concrete subclass will have to.
|
JDBCSupport - An easy to use, light-weight JDBC framework -
|
 |
 |
|
|
subject: Abstract Class not overriding the methods
|
|
|