BEE MBA PMP SCJP-6
When you do things right, people won't be sure you've done anything at all.
BEE MBA PMP SCJP-6
For your duck example, declaring fly() in an interface versus implementing
a version in an abstract class would not relax the flight requirement.
When you do things right, people won't be sure you've done anything at all.
BEE MBA PMP SCJP-6
When you do things right, people won't be sure you've done anything at all.
BEE MBA PMP SCJP-6
Jim Hoglund wrote: Of course it depends on some
other stuff. Thanks for the good discussion.
When you do things right, people won't be sure you've done anything at all.
If it always has the same ebhaviour,you can mark that method final.Janeice DelVecchio wrote: . . . If EVERY subclass is ALWAYS going to have that behavior, you should probably go with the Abstract class. . . .
When you do things right, people won't be sure you've done anything at all.
BEE MBA PMP SCJP-6
When you do things right, people won't be sure you've done anything at all.
When you do things right, people won't be sure you've done anything at all.
Campbell Ritchie wrote:That won't compile unless you write Giraffe extends Animal. It will still not compile when you are calling an abstract method in the superclass. And remember an abstract method's body is a single semi-colon.
You have still not understood what I said. What I meant is that if you have an implemented method in a superclass, you can insist all subclasses use the same method unchanged by marking it final. As far as I know, you can have final methods which are implemented in an abstract class.
When you do things right, people won't be sure you've done anything at all.
then I suggested it might always have the same ebhaviour. I think we are thinking more-or-less the same things, just expressing them differently (and spelling them differentlyALWAYS going to have that behavior
When you do things right, people won't be sure you've done anything at all.
If you send is by car it's a shipment, but if by ship it's cargo. This tiny ad told me:
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
|