package ch07.ex04;

public class Parents {
	protected int x;
	protected int y;

	public Parents() {
		this.x=88;
		this.y=99;
	}
	
	public Parents(int x, int y) {
		this.x=x;
		this.y=y;
	}
}
package ch07.ex04;

public class Son extends Parents{
	private char z;
	
	public Son() {
		super();
		this.z='A';
	}
	
	public Son(int x, int y, char z) {
		super(x, y);
		this.z=z;
	}

	public void disp() {
		System.out.println(x + "\\t" + y + "\\t" + z);
	}
}
package ch07.ex04;

public class Ex {

	public static void main(String[] args) {
		Son son=new Son();
		son.disp();

		System.out.println();
		
		Son son2=new Son(1, 2, '*');
		son2.disp();
	}

}
88	99	A

1	2	*