//Point.java
// 点类定义
//package com.deitel.jhtp3.ch09;
public class Point {
protected int x, y; // 点的坐标
// 构造函数
public Point() { setPoint( 0, 0 ); }
// 构造函数
public Point( i
package Employees;
public class GenericEmployee
{
protected String name, address;
protected int employeeNumber;
/** Constructor that initializes an Employee with the name, address, and num
public class Employee
{
protected String name, address;
protected int employeeNumber;
// constructor that takes the name, address, and number
public Employee(String n, String a, int e)
{
public class A
{
private int x;
protected int y;
int z;
private void methodX()
{
x = 5;
}
protected void methodY()
{
System.out.println("in A's methodY()");
y = 10;
}