由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Java版 - Re: abstract classes GRAPHICS
相关主题
请教BufferedImage中的setColor问题。Re: How to use abstract class?
Question on classpath一个土土的问题
abstract class 的简单例子Graphics question
三论abstract classhow to paint on a Jpanel?
为啥画不出来?interface可不可以有variable?
问两个语法问题hehe, Neo (.NET Entity Objects)
Re: print problem, GUI guru please come inHow to flash point (oval) ?
extending generic class , but not mentioning its parameterized type?要不要搞个.net版?
相关话题的讨论汇总
话题: abstract话题: class话题: graphics
进入Java版参与讨论
1 (共1页)
p*a
发帖数: 592
1
I think you haven't fully understood abstract
class yet. You can't instantiate an abstract
class, which means you can't use new MyAbstractClass()
to create an instance. But that doesn't prevent
you from instantiate a subclass(which is concrete)
of the abstract class. A simple example will show
the advantage of having an abstract class:
abstract class MyAbstractClass { ... }
class MyConcreteClass1 extends MyAbstractClass { ... }
class MyConcreteClass2 extends MyAbstractClass { ... }
class Test
1 (共1页)
进入Java版参与讨论
相关主题
要不要搞个.net版?为啥画不出来?
Help-applet access remote database问两个语法问题
Can I find the classes relationshipRe: print problem, GUI guru please come in
请问一个有关选择数据结构的问题extending generic class , but not mentioning its parameterized type?
请教BufferedImage中的setColor问题。Re: How to use abstract class?
Question on classpath一个土土的问题
abstract class 的简单例子Graphics question
三论abstract classhow to paint on a Jpanel?
相关话题的讨论汇总
话题: abstract话题: class话题: graphics