I read on Google that for method overriding in python the methods in the base and derive class should have same name and same parameters. Is it true? Can parameters be different? See my code below:
class A:
def add(self,a,b):
return a+b
class B(A):
def add(self,a,b,c):
return a+b+c
Can we still call it overriding? because parameters of both methods are different and I read on Google for method overriding, two methods name and parameters should be same. Please clear my confusion.
Thanks