What is syntax for writing private method in a interface?
You cannot write a private method in an interface. Everything inside an interface is by default public.
Ready to start your tutorial with us? That's great! Send us an email and we will get back to you as soon as possible!