Tuesday, 15 March 2011

java - Why we should not call public method from another public? -



java - Why we should not call public method from another public? -

i told should not phone call public method of class public method in same class. not able understand dont see problem that. 1 time method has been declared public contract fixed lifetime , hence there should not problem in calling public method.

so not sure if statement true or ok phone call public api public api [this design perspective]?

does compiler balk @ when try? no? it's legal in respect.

does person providing 'advice' produce canonical document explaining standard (either in industry or within organisation)? no? it's opinion.

consult company standards, otherwise, phone call nonsense.

java

No comments:

Post a Comment