Constants are values which are known at compile time and do not change. Constants must be initializing before we use. Constants are declared as a field, using the const keyword.
E.g.: class Test
{
public const float pi=3.14;
}
Copyright © 2012. GS dot net - All Rights Reserved - Design by BTDesigner - Proudly powered by Blogger
0 comments :
Post a Comment