Private Constants

Applies to fields and member variables.
A const modifier can be used to indicate that a field value or local variable cannot be modified
cannot be used with 'static'

private const double PI = 3.14 
private const double Number = 10 / PI

Syntax > Constants

© 2023 Better Solutions Limited. All Rights Reserved. © 2023 Better Solutions Limited TopPrevNext