Constants
are used to declare the data fields of a class. The member value is assigned at
compile time but not changed later. Constant members are implicitly static
often, we can’t declare them explicitly using static.
Eg :
Pubic const string name=”Sample Text”;
No comments:
Post a Comment