• + 0 comments

    python solution :

    class MyBook(Book): def init(self, title, author, price): super().init(title, author) self.price = price def display(self): print(f"Title: {self.title}\nAuthor: {self.author}\nPrice: {self.price}")