mirror of
https://github.com/onyx-and-iris/Lottery.git
synced 2024-11-21 21:50:48 +00:00
mark abstract lottery classes as abstract
This commit is contained in:
parent
786d9986e9
commit
33b6ae78f0
@ -6,7 +6,7 @@
|
||||
/// Abstract base class for lotteries.
|
||||
/// Limits property must be overridden.
|
||||
/// </summary>
|
||||
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.
|
||||
/// </summary>
|
||||
internal class LotteryWithSpecial : Lottery
|
||||
internal abstract class LotteryWithSpecial : Lottery
|
||||
{
|
||||
protected virtual Limits SpecialLimits => throw new NotImplementedException();
|
||||
protected virtual string SpecialIdentifier => throw new NotImplementedException();
|
||||
|
Loading…
Reference in New Issue
Block a user