Home > Net > Attribute name repetition interface method is how to deal with it?
Attribute name repetition interface method is how to deal with it?
Time:09-25
Want to know how to deal with interface method attribute name repetition is? How to find the article, most of the processing, but I want to know is 1. How to avoid, this should be avoided, compare if either alone write all interfaces, or more than one person write interface separately, there is always may wish, such as the interface of a property name, interface attribute has a name b 2. If unavoidable, then inherited after more than one interface, how do you know if there's a moniker does not implement? All choose "show that implement the interface"?
CodePudding user response:
Don't need to worry about don't need you to worry about things
The same common type, name,
Name, type the same show implementation
Why you don't need to worry about, because we are CTRL +. Let the ides generate its own, the IDE will choose how to implement Unlike blog garden powder, blog garden like with all sorts of things, the ans of actual production is not tangle at all, is a normal human thinking, we obtained conforms to the human is true, why not for his head every day into the machine's
Here, CTRL +. Generated by machine, the ans for normal smoothly, without breaking thinking,
CodePudding user response:
That is CTRL +. Choose "implementing an interface is a matter of"? Because I don't know whether there are in the interface name repetition, need a an interface to see just know
CodePudding user response:
Can not also explicitly implementing an interface?