Skip to content
Advertisement

abstractor method with object return type in java

I’m new at oop ,I want to pass object parameter of an abstract method but it gives me error, can anyone explain it to me and help me fix the error . Thanks for your help.

JavaScript

Advertisement

Answer

You cannot change the abstract method signature. You have created an entirely new method unrelated to the method you wanted to override. Use the @Override annotation to spot this class of errors more quickly.

JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement