ocpjp 6.0 certified.
love demgracy, knowledge demogracy, open source and Java - OCPJP 76%
Imad Aydarooos wrote:As I know there is no such thing as static overriding or overloadinbg
SCJP 6 [86%], OCPWCD [84%], OCEJPAD [83%]
If you find any post useful, click the "plus one" sign on the right
Prasad Kharkar wrote:
Imad Aydarooos wrote:As I know there is no such thing as static overriding or overloadinbg
there cannot be overried methods but there can be overloaded static methods
love demgracy, knowledge demogracy, open source and Java - OCPJP 76%
Imad Aydarooos wrote:
Prasad Kharkar wrote:
Imad Aydarooos wrote:As I know there is no such thing as static overriding or overloadinbg
there cannot be overried methods but there can be overloaded static methods
You are right Prasad, I could say:
we can overload static methods in the same class, but we can not overload them in the sub class, because they are not inherted. if we try to overload static method in the sub class we are only creating a new method not related to the suber class method.
thanks Prasad
ocpjp 6.0 certified.
Imad Aydarooos wrote:
Prasad Kharkar wrote:
Imad Aydarooos wrote:As I know there is no such thing as static overriding or overloadinbg
there cannot be overried methods but there can be overloaded static methods
You are right Prasad, I could say:
we can overload static methods in the same class, but we can not overload them in the sub class, because they are not inherted. if we try to overload static method in the sub class we are only creating a new method not related to the suber class method.
thanks Prasad
love demgracy, knowledge demogracy, open source and Java - OCPJP 76%
but he can't override... only he can hide it
anyway...if we talk about the signature shouldnt the String[] aa be different from String... aa??
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime. |