csharp const

Code Example - csharp const

                
                        sealed class SealedClassA{ 
	public void testA(){Console.WriteLine("test A");}
}
class SealedClassA{ 
	public void testA(){Console.WriteLine("test A");}
}
class childclassB : SealedClassDemo { 
	public sealed override void testA(){Console.Write("test A B");}
}
public const float x = 1.0f
public static readonly uint l1 = (uint) DateTime.Now.Ticks;
                    
                
 

csharp declare constan

                        
                                public const int NUMBER = 9;
                            
                        
 

Related code examples