/* Program Test_Access.java demonstrates access modifiers */
class Circle {
	private	double hidden = 5;
	protected double	r;

	Circle() { r = 10.0; }
	double area() { return 3.14 * r * r; }
	double get_hidden() { return hidden; }
}

class GraphicCircle extends Circle {
	int	color;

	void set_color(int color) { this.color = color; }

	void print_all() {
//	Uncomment the line below and try compiling.
//		System.out.println(hidden); 
		System.out.println("r = " + r); 
	}
}

class Test_Access {
	public static void main(String[] args) {
		GraphicCircle gc = new GraphicCircle();
		gc.set_color(100);
		gc.print_all();
		}
}


