mark abstract lottery classes as abstract

This commit is contained in:
onyx-and-iris 2024-09-27 19:53:02 +01:00
parent 786d9986e9
commit 33b6ae78f0

View File

@ -6,7 +6,7 @@
/// Abstract base class for lotteries. /// Abstract base class for lotteries.
/// Limits property must be overridden. /// Limits property must be overridden.
/// </summary> /// </summary>
internal class Lottery internal abstract class Lottery
{ {
protected virtual Limits Limits => throw new NotImplementedException(); protected virtual Limits Limits => throw new NotImplementedException();
public virtual string Play() => $"Numbers: {string.Join(", ", Generator.Generate(Limits))}"; public virtual string Play() => $"Numbers: {string.Join(", ", Generator.Generate(Limits))}";
@ -26,7 +26,7 @@
/// It subclasses Lottery. /// It subclasses Lottery.
/// SpecialLimits and SpecialIdentifier properties must be overridden. /// SpecialLimits and SpecialIdentifier properties must be overridden.
/// </summary> /// </summary>
internal class LotteryWithSpecial : Lottery internal abstract class LotteryWithSpecial : Lottery
{ {
protected virtual Limits SpecialLimits => throw new NotImplementedException(); protected virtual Limits SpecialLimits => throw new NotImplementedException();
protected virtual string SpecialIdentifier => throw new NotImplementedException(); protected virtual string SpecialIdentifier => throw new NotImplementedException();