Python Forum
Is my code OOP and what could i do better?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Is my code OOP and what could i do better?
#4
(Mar-01-2022, 07:05 AM)klajdi7 Wrote: Do you have an idea how to fix the number 8 i've been trying multiple things and its still not working?
Yes, sinceBücheris aLibraryclass, you just need to initialize it that way. Try it like this and notice line 3.
class Bücher(Library):
    def __init__(self):
        super ().__init__ ()
        self.borrowBooks = []
 
    def displayUnavailableBooks(self):
        print("Liste mit ausgeliehenen Bücher: ")
        for books1 in self.books1: 
            print(" -" + books1 )
Reply


Messages In This Thread
RE: Is my code OOP and what could i do better? - by BashBedlam - Mar-01-2022, 02:46 PM

Forum Jump:

User Panel Messages

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