What is the output of the below given program ?
public class A
public const float PI = 3.141f;
public const float P = 2.98556f + PI;
public class B
public static void Main()
A a=new A();
Constant must be accessed using class name [dot] constant name because during compilation, constants are converted to static members.
Back To Top