Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Syntax error Method xxx have been already implemented in another class yyy

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

nishantbansal91
Active Contributor
0 Kudos

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

3 REPLIES 3

nishantbansal91
Active Contributor
0 Kudos

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

0 Kudos

Thank you it worked. My issue solved.

Former Member
0 Kudos

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