constructors

im new at Java and im trying to make a program and I need to make a constructor definition that has 2 parameters that will bring in information and in that constructor i need to assign values taken in from the parameters to corresponding fields. can someone help me out
[270 byte] By [TGL11] at [2007-11-20 11:34:13]
# 1 Re: constructors
This isn't a Java tutorial, it's a forum for helping people solve problems with Java. You can find out all the basics of Java for yourself from the Java Tutorial (http://java.sun.com/docs/books/tutorial/?frontpage-spotlight). The bit you want is here: Passing Information to a Method or a Constructor (http://java.sun.com/docs/books/tutorial/java/javaOO/arguments.html), but I recommend you start at the beginning and work your way through.

You might find Thinking In Java (http://www.dev-archive.com/java/tij/) useful too.

The only way to learn a new programming language is by writing programs in it...
B. Kernighan & D. Richie
dlorde at 2007-11-10 2:14:03 >