Forums Register Login

Can member fields of an interface be set from some other class

+Pie Number of slices to send: Send
I have an interface with static field . Can we create a reference of the interface and set the member fields of the interface from some other class. ?
+Pie Number of slices to send: Send
Interface fields are final by default.

You cannot change, once initialized.
+Pie Number of slices to send: Send
Please see the JavaRanch naming policy. Please change your display name to conform with this policy. Thanks!
Can you smell this for me? I think this tiny ad smells like blueberry pie!
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 811 times.
Similar Threads
Sierra and Bates - Interface Access Modifiers
Why data members are private when we can access them through getter/setters?
question from anilbachi scjp suit ver 1.0
Stream and writer
Kathy / Bert interface question
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 18:52:22.