I have a class(X) having method(xyz)
I have to define a class(Y) which extends class(X) but should run method(pqr) instead of method(xyz)
Here is the example :
- Code: Select all
-----Actually, my requirement is to call "Y.method()" whenever "X.method()" is called and I can't do modifications in 'Class X' but I can modify 'Class Y'.
Could anyone please clarify this.