mirror of
				https://github.com/onyx-and-iris/Lottery.git
				synced 2025-11-04 15:31:45 +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.
 | 
					    /// 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();
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user