SBX - Search With Button

SBX - Forum Post Title

Object could not be created because abstract method classname.XXX() has not been implemented.

Microsoft Dynamics AX Forum

Amit Das asked a question on 12 Oct 2018 4:32 AM

Question Status

Verified

I am getting this weird error in a class. 

I have class A and 2 extended classes B and C. I have created an abstract method in class A and used them in B and C. It was working fine. But all of a sudden I get this error during compilation. Do you have any idea why this error pops up and what could be the possible solution?

Thanks

Reply
Martin Dráb responded on 12 Oct 2018 4:47 AM
Verified Answer

It says that you forgot to provide an implementation of the abstract method. If B and C are not abstract, they both must have a (non-abstract) implementation of the abstract method from A.

Reply
Amit Das responded on 12 Oct 2018 4:57 AM

Thanks for your response. I have just investigated further and yes, it had a non-abstract implementation in another extended class (say C).

Reply
Martin Dráb responded on 12 Oct 2018 4:47 AM
Verified Answer

It says that you forgot to provide an implementation of the abstract method. If B and C are not abstract, they both must have a (non-abstract) implementation of the abstract method from A.

Reply

SBX - Two Col Forum

SBX - Migrated JS