From 33b6ae78f0f8bc9a4aa139d5185e650eb299fd2c Mon Sep 17 00:00:00 2001 From: onyx-and-iris Date: Fri, 27 Sep 2024 19:53:02 +0100 Subject: [PATCH] mark abstract lottery classes as abstract --- Lottery/Lottery.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lottery/Lottery.cs b/Lottery/Lottery.cs index 5f68bfc..dd0edc8 100644 --- a/Lottery/Lottery.cs +++ b/Lottery/Lottery.cs @@ -6,7 +6,7 @@ /// Abstract base class for lotteries. /// Limits property must be overridden. /// - internal class Lottery + internal abstract class Lottery { protected virtual Limits Limits => throw new NotImplementedException(); public virtual string Play() => $"Numbers: {string.Join(", ", Generator.Generate(Limits))}"; @@ -26,7 +26,7 @@ /// It subclasses Lottery. /// SpecialLimits and SpecialIdentifier properties must be overridden. /// - internal class LotteryWithSpecial : Lottery + internal abstract class LotteryWithSpecial : Lottery { protected virtual Limits SpecialLimits => throw new NotImplementedException(); protected virtual string SpecialIdentifier => throw new NotImplementedException();