Computer Science, asked by shivampal3805, 1 year ago

Which is the valid declaration of method in an interface?



a.Static int method()



b.Final int method()



c.Public int method()



d.Protected int method()?

Answers

Answered by himanshurana8529
5

ince the interface specifies a set of exposed behaviors, all methods are implicitly public . The member type declarations in an interface are implicitly static, final and public, but otherwise they can be any type of class or interface.

I hope it will help you.

Please mark me as BRAINLIEST


himanshu1224: please mark me as BRAINLIEST ❤❤...
Similar questions