using System; using System.Collections.Generic; using System.Text; namespace DemoOOP7 { class Human : Character, ISecurityGuard { // Attributes private ISpell _currentSpell; // Constructors public Human(string name, ISpell spell) : base(name) // Call constructor of Character class to store name { _currentSpell = spell; } // Properties // Methods public void PatrolPerimeter() { Console.WriteLine("Human patrolling"); } public void PickUpSpell(ISpell spell) { _currentSpell = spell; } // Strategy Design Pattern public void CastSpell() { _currentSpell.Cast(); } } }