Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- """
- This module will act as a class to hold book objects and print its properties.
- """
- class Book:
- """
- This class will store each book property and have a method to
- print those properties for debugging purposes.
- """
- def __init__(self, title: str, date: object, author: str, length: int):
- """ This constructor will initialize all the book properties. """
- self.title = title
- self.date = date
- self.author = author
- self.length = length
- def print_book_props(self):
- """ This print_book_props function will print the book properties to help debug. """
- print(self.title, self.date, self.author, self.length)
Advertisement
Add Comment
Please, Sign In to add comment