1.

What is the concept of overriding method? Give an example for the same.

Answer»

Overriding Methods: It is a method to access, the parameterized constructor with the same name but having different parameters. For example,

Class emp:

def_init_(self, n):

self, a = n def_init_(self):

self, a = 100



Discussion

No Comment Found