The following code snippet gave me compiler error at Line 1.
public abstract class xyz { float Gamma = 20.0; //Line 1 public class Alpha { v
As per my understanding, float is used for decimal variables.
No. Numerical literals with fraction parts are treated as doubles by default.