Python Forum
Polymorphism not working with a call to a abstract method
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Polymorphism not working with a call to a abstract method
#4
(Nov-04-2019, 01:24 AM)MckJohan Wrote: can you explain a little bit more on the problem?
do you want python to search the implementation to all subclass and used it?[/quote]
Yes.

Quote:where are you calling at? it will be helpful where did you call. it may solved using super() or adapter pattern.

Well, you mentioned the place on your message:
Quote:from LDA class, the Process function is calling writeAccumulator which doesn't have implementation.

writeAccumulator is been called on the process method. Anyway, it was merely the lack of self that ichabod801 mentioned, that prevented it to work as I expected.
Reply


Messages In This Thread
RE: Polymorphism not working with a call to a abstract method - by colt - Nov-04-2019, 11:04 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  method call help sollarriiii 6 1,158 Feb-21-2023, 03:19 AM
Last Post: noisefloor
  Custom method to handle exceptions not working as expected gradlon93 3 1,030 Dec-22-2022, 07:12 PM
Last Post: deanhystad
  Behavior of Abstract Base Class dgrunwal 4 2,192 Oct-15-2020, 07:19 PM
Last Post: Gribouillis
  Abstract classes SephMon 8 3,132 Aug-30-2020, 05:03 AM
Last Post: Gribouillis
  remove elements method not working spalisetty06 4 2,481 Aug-13-2020, 01:17 PM
Last Post: deanhystad
  python os.popen is not working for wait method elenaflorence87 0 2,006 Jul-22-2020, 12:56 PM
Last Post: elenaflorence87
  how to get around recursive method call Skaperen 10 4,298 Jul-01-2020, 10:09 PM
Last Post: Skaperen
  How to convert TransactSQL into Abstract Syntax Tree (AST) using Python? bajrangbs 2 2,320 Jan-30-2020, 03:46 PM
Last Post: micseydel
  How to call COM-method using comtypes jespersahner 0 2,430 Nov-15-2019, 12:54 PM
Last Post: jespersahner
  How to Call a method of class having no argument dataplumber 7 6,463 Oct-31-2019, 01:52 PM
Last Post: dataplumber

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020