Those are not instance variables.  They're static.

-----Original Message-----
From: Nima Boustanian [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 14, 2006 9:37 AM
To: Tapestry users
Subject: Question about abstract instance variables

Hey all

Encountered this piece of code on the Tapestry reference page...

 public final static Integer SMALL = new Integer(1);
  public final static Integer MEDIUM = new Integer(2);
  public final static Integer LARGE = new Integer(3);

  public abstract Integer getOrderSize();

  public void doSubmit() {
    // process order
  }


Is it safe to declare the Integers as final statics? I thought all 
instance variables in Tapestry should be declared as abstract,
even if they are being fetched by an abstract method - in this case 
getOrderSize()


link: 
http://jakarta.apache.org/tapestry/tapestry/ComponentReference/RadioGroup.ht
ml

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to