D
D
Den4_x2019-07-25 23:37:20
Java
Den4_x, 2019-07-25 23:37:20

Why add the static modifier to a constant?

To access through the name of the class, and not through the creation of an object and that's it, or is there another intention or is it just considered good form??

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis Zagaevsky, 2019-07-25
@Den4_x

Static members exist in one instance for the entire program. Why do you need a separate pi for each of your objects?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question