0

If Methods in an interface are implicitly public, why do we need to use keyword public when define a method?

18th Mar 2017, 11:28 AM
Andrew Tverdokhleb
Andrew Tverdokhleb - avatar
4 ответов
+ 1
You don't have to.
18th Mar 2017, 1:38 PM
merkrafter
0
But it was in the example
19th Mar 2017, 6:02 PM
Andrew Tverdokhleb
Andrew Tverdokhleb - avatar
0
You can try it for yourself in the code playground.
19th Mar 2017, 6:30 PM
merkrafter
0
Yes, you are right, thanks!
20th Mar 2017, 8:07 PM
Andrew Tverdokhleb
Andrew Tverdokhleb - avatar