解释"引用"???
按照书上的抄了下来,这个applet小程序是:import java.awt.Graphics;
import javax.swing.JApplet;
public class WelcomeApplet extends JApplet{
public void paint(Graphics g)
{
super.paint(g);
g.drawString("Welcome to",25,25);
g.drawString("Java Programming!",25,40);
}
}
书上说g是Graphics对象的引用???Graphics怎么会是对象呢?不是类吗?数据类型~~~~谢谢!