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
#3
can you explain a little bit more on the problem?

from LDA class, the Process function is calling writeAccumulator which doesn't have implementation. do you want python to search the implementation to all subclass and used it? where are you calling at? it will be helpful where did you call. it may solved using super() or adapter pattern.
Reply


Messages In This Thread
RE: Polymorphism not working with a call to a abstract method - by MckJohan - Nov-04-2019, 01:24 AM

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