public class X { private int a; private int b; private char c; public X() { a = 0; b = 0; c = 'c'; } public X(int a, int b, char c) { this(); this.a = a; this.b = b; this.c = c; } public void m(int x, int y) { a = ++x + y; b = this.b * 2; c = 'X'; } public void m(int b, int c, char d) { a = this.b; b = this.b; this.c = d; d = this.c; } public String toString() { String s = ""; s = s + a + " " + b + " " + c; return(s); } }