Can an object be instantiated using const keyword?

 Posted by Bharathi Cherukuri on 6/5/2012 | Category: ASP.NET Interview questions | Views: 1640 | Points: 40

No, we cannot instantiate an object using const keyword.
Only possible constant reference types are string and null.


const int x = 0;
public const double gravitationalConstant = 6.673e-11;
private const string productName = "Visual C#";

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response