View Single Post
  #7 (permalink)  
Old 01-24-2008, 11:37 PM
frejon26 frejon26 is offline
Member
 
Join Date: Jan 2008
Posts: 7
frejon26 is on a distinguished road
as everyone else said you can use Java's default constructor.
Number n1 = new Number();
or alter the "Pie" method which looks as if it is practically a constructor anyway just the wrong syntax. remove void and replace "Pie" with the name of your class. As in:

public Number(int numIn){
number = numIn;
}
I think conventionally only Constructor methods should be uppercase.

-Jon
Reply With Quote