That's good for java.. It really is..
Practically however, if you where naming functions correctly, you would use
a verb for the method.. You know what a verb is, it's a doing word.. i.e.
GetSomething, DoSomething, CalculateSomething...
Compare that to a variable which is normal just a name...
Not only that, you should also consider clarity of code.. Most coding
standards (regardless of company) have different naming conventions that
prevent this sort of conflict, normally through casing and prefixing of
variables...
Personally, I think if you ever get confused with something like this, or if
you think this is a serious problem, then the code you are writing is most
likely very unmaintainable...
Just my 2c..
Eddie de Bear
"John Bailo" wrote:
Create a method BBB
private String BBB(String s)
{
return s + "hello";
}
Then call the method with
String BBB = BBB(company);
This will work in java, but not in c#;