mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-02-16 15:01:28 +00:00
23 lines
490 B
C#
23 lines
490 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace csharp
|
|
{
|
|
internal class Legendary : Item
|
|
{
|
|
public Legendary(string name, int sellIn, int quality) : base(name, sellIn, quality)
|
|
{
|
|
TypeOfItem = ItemType.Legendary;
|
|
}
|
|
|
|
protected override void QualityModifier()
|
|
{
|
|
//legendary items doesnt change!
|
|
this.SellIn++;
|
|
}
|
|
}
|
|
}
|