Why members of interface cannot be static? need examples and reason
Why members of interface cannot be static?
hai all,
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
VulpesRank #55 · 29.2K reputationPosted Aug 21, 2013, 1:11 AM EDT
Karthik KRank #1,981 · 738 reputationPosted Aug 21, 2013, 1:18 AM EDT
An interface is a "contract" or an agreement between the consumer (caller) and the provider (call). An interface describes what and how the call will provide functionality. There is no need for static members provided by a third party. Static members cannot be overridden by a provider.