Question: Which of the following is the correct way to define a constant field in the class in term of C#?
A
B
C
D
public const int PI=3.145
B
public constant int PI=3.145
C
public int const PI=3.145
D
const public int PI=3.145
Note: Not available
public class Asset{ public string Name; } public class Stock : Asset{ public long SharesOwned; } public class House : Asset{ public decimal Mortgage; }
public class Asset{ public string Name; } public class Stock : Asset{ public long SharesOwned; } public class House : Asset{ public decimal Mortgage; }