Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

NewGUI is not abstract and does not override abstract method

 
Zahariah Lloyd
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am getting this error when I try to compile this code:


I have checked for misnaming errors, or typos, and cannot see any, so I am stumped here. Can anyone see something I am missing Please??
 
Steve Luke
Bartender
Posts: 4181
22
IntelliJ IDE Java Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
NewClass is an abstract class with at least one abstract method. You did not override that abstract method with a concrete implementation.
 
Josh Borg
Ranch Hand
Posts: 35
Chrome Eclipse IDE Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Zahariah Lloyd wrote:I am getting this error when I try to compile this code:


I have checked for misnaming errors, or typos, and cannot see any, so I am stumped here. Can anyone see something I am missing Please??


What are you trying to do with this code?
 
Zahariah Lloyd
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Josh Borg wrote:What are you trying to do with this code?


I am trying to start a simple GUI that will be useful later for more involved projects, but it won't even let me get out of the gate....
 
Steve Luke
Bartender
Posts: 4181
22
IntelliJ IDE Java Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need to show us more about NewClass. Do you understand what abstract methods are? The NewClass has a method which has a name, has the identifier abstract and has no implementation or code. It is a sign that subclasses, like NewGUI, must write the code for that method. You need to find out which method is missing and what it is supposed to do. Then you need to implement (write the code) for that method.

We can't help you any further because we have no access or knowledge of what NewClass is.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic