Data hosted with ♥ by
Pastebin.com
-
Download Raw
-
See Original
public
abstract
class
Animal
{
protected
MoveBehavior moveBehavior
;
public
abstract
void
display
(
)
;
public
void
doMove
(
)
{
moveBehavior.
move
(
)
;
}
public
void
setMove
(
MoveBehavior moveBehavior
)
{
this
.
moveBehavior
=
moveBehavior
;
}
}