23 lines
453 B
C#
23 lines
453 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace DuckModel
|
|
{
|
|
class RedheadDuck : DuckBehaviour
|
|
{
|
|
public override void Display()
|
|
{
|
|
Console.WriteLine("drew a Redhead duck");
|
|
}
|
|
|
|
RedheadDuck()
|
|
{
|
|
base.SetFlyBehaviour(new FlyWithWings());
|
|
base.SetQuackBehaviour(new Quack());
|
|
}
|
|
}
|
|
}
|