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
Post a Comment