How to access a constant field declared in a class from another class?
By using object of a class.
By using name of the class.
Can not access outside of the class.
None of the above.
During compilation time, constants are converted to static member.So to access constants, use name of the class.
Back To Top