java - Java2C# translation: public methods in Interfaces in C# -


Another translation question, it can be more theoretical, but I'm eager to design options. SFNU:

Why is not C # allowed to control access to methods in Java like Java? For example, in a C # interface:

  Public Zero Travel (Axiomatic Axiom);  

Thanks.

In both C # and Java, all the methods of an interface are public.

In Java, public keywords are allowed, which are likely to be saved on parsing rules. In C #, the public keyword was considered redundant and was completely removed from the interface announcements.


Comments

Popular posts from this blog

c++ - Linux and clipboard -

What is expire header and how to achive them in ASP.NET and PHP? -

sql server - How can I determine which of my SQL 2005 statistics are unused? -