[thelist] JAVA - call to super must be first statement in constructor error - but it is!

Matt Warden mwarden at gmail.com
Mon Mar 19 12:07:15 CDT 2007


On 3/19/07, jason h <jayuk_1 at hotmail.com> wrote:
> public class Client extends JFrame {

You need to have a method called Client() and the first line must be a
call to the superclass's constructor.

This is invalid:

  public void createEmployee()  {
       super( "Creating a Sequential File of employees" );
...

-- 
Matt Warden
Cleveland, OH, USA
http://mattwarden.com


This email proudly and graciously contributes to entropy.



More information about the thelist mailing list