| Author |
question about abatract
|
michael wang
Ranch Hand
Joined: Feb 06, 2002
Posts: 35
|
|
why abstract method can not be static or private? thanks
|
--<br />a java beginner from China
|
 |
Rob Ross
Bartender
Joined: Jan 07, 2002
Posts: 2205
|
|
An abstract method can't be private because there would be no way for a subclass to implement it! It would not be inherited by any subclasses, so there would be no way to provide a body for it. Static methods cannot be overriden by a subclass; they can be hidden, but not overridden. Therefore, there is no way to provide an implementation for the superclass.
|
Rob
SCJP 1.4
|
 |
michael wang
Ranch Hand
Joined: Feb 06, 2002
Posts: 35
|
|
|
exactly clear,thanks Rob
|
 |
 |
|
|
subject: question about abatract
|
|
|