The moose likes Beginning Java and the fly likes Abstract Class not overriding the methods Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "Abstract Class not overriding the methods" Watch "Abstract Class not overriding the methods" New topic
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 -
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Abstract Class not overriding the methods
 
Similar Threads
tricky question
Mock Question (Help)
Diff bw Abstract class and Interface
An abstract method can NOT be declared static, synchronized,
is this Ambiguous?