0
void meth2 (){...} in classe c1 and void math2 (int a){...} in classe c2 extends c1 is it overloading or over riding??
2 ответов
+ 2
it is overriding because the implementation is different as opposed to the parameters being different as is the case for overloading. when you inherit a class from another class in java, you override the superclass's methods (if you define the methods with their own implementation). this is much simpler than in other languages so take advantage of it!
0
thunk y :)