04-09-2015 12:16 PM
Hi,
I have a case where the sub class is created using the super class. In sub class by mistake the implementation of a method is done even though the method is already implemented is done in super class. The class was activated forcefully. when try to test the functionality its dumping with the syntax error "Method XXX has already been implemented in class yyy". Now I would like to know how to delete the sub class implementation. I am very new to OOPS, I could not find any way to do this?
Please help me in this.
Regards
A
04-09-2015 12:46 PM
Hi A Reddy,
You can also redifine the METHOD there is one undo button next to redifine button.
place a cursor on your method and press the undo button in the sub class.
Thanks
Nishant
04-09-2015 12:46 PM
Hi A Reddy,
You can also redifine the METHOD there is one undo button next to redifine button.
place a cursor on your method and press the undo button in the sub class.
Thanks
Nishant
04-09-2015 2:15 PM
04-09-2015 2:14 PM
Reddy,
While using inheritance the same method in the parent and child class can have an implementation. Generally when you define the child class the method from the parent class gets copied into the child class with the implementation from the parent class. In order to override this you need to redefine the method in the child class so that it can have a different implementation.
In order to redefine, select the method in the child class and hit the redefine button. By doing this you are letting the system know that the method of the child class is redefined.
Thanks,
Vikram.M