相关代码 |
|
import java.io.Serializable; public class SomeClass implements Serializable { private int number; private char letter; public SomeClass( ) { number = 0; letter = 'A'; } public SomeClass(int theNumber, char theLetter) { number = theNumber; letter = theLetter; } public String toString( ) { return "Number = " + number + " Letter = " + letter; } }
相关资源 |
|