Topic: 求助(为什么在paint(Graphics g)中还要以一个abstract类构建对象)

  Print this page

1.求助(为什么在paint(Graphics g)中还要以一个abstract类构建对象) Copy to clipboard
Posted by: binghuo007
Posted on: 2006-03-12 22:03

Graphics类是一个abstract类,可为什么在paint(Graphics g)中还要以Graphics构建对象然后作为参数传入呢?

2.Re:求助(为什么在paint(Graphics g)中还要以一个abstract类构建对象) [Re: binghuo007] Copy to clipboard
Posted by: rr253
Posted on: 2006-03-15 12:09

graphics是抽象类阿
但是你传进去的变量是继承了它的阿
继承关系来看的话你传进去的也是graphics阿


   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923