posted 13 years ago
Hi All,
Actually I just wanted to ask about this code snippet.
Here Prius Class extends Toyota class and as we know static methods are not overridden. But in main method I have created Prius object and calling breaking method -
Its called Toyota class breaking method. how does this happen ??
Static methods are not overridden ? is it?
this is the output i get
Vehecle Created....
Toyota Created....
Prius Created....
Toyota Breaking....
Any help??
Thanks,
Dil.