Results 1 to 2 of 2
Thread: abstract method-abstract class
- 04-29-2011, 06:57 PM #1
Member
- Join Date
- Apr 2011
- Posts
- 1
- Rep Power
- 0
abstract method-abstract class
I am new to java technology.
I have one doubt in the following program.
class Test{
public abstract void m1();
}
while compiling i am getting like
Test.java:1: Test is not abstract and does not override abstract method m1() in Test
class Test{
^
1 error
what does it mean.
could you explain what the exact meaning of this compile time error.
-
Simply, only abstract classes and interfaces can have abstract methods.
Similar Threads
-
Class is not abstract and does not override abstract method run(com.
By rgeurts in forum New To JavaReplies: 4Last Post: 04-14-2011, 11:42 AM -
Not abstract and doesn't override abstract method keyReleased
By cc11rocks in forum AWT / SwingReplies: 4Last Post: 02-19-2011, 04:32 AM -
SkeletonMidlet is not abstract and does not override abstract method
By just_in_deed in forum CLDC and MIDPReplies: 3Last Post: 08-13-2010, 04:57 AM -
Difference between Abstract class having only abstract method and a Interface class
By Santoshbk in forum New To JavaReplies: 6Last Post: 02-11-2009, 10:51 AM -
GameImpl is not abstract and does not override abstract method
By Macca07 in forum New To JavaReplies: 2Last Post: 11-21-2008, 12:20 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks