-
Notifications
You must be signed in to change notification settings - Fork 0
/
model.py
34 lines (30 loc) · 1.05 KB
/
model.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
class Book:
def __init__(self, isbn_no, title, book_format, subject, rental_price, copies):
self.isbn_no = isbn_no
self.title = title
self.book_format = book_format
self.subject = subject
self.rental_price = rental_price
self.copies = copies
class Magazine:
def __init__(self, magNo, title, colorprint, subject, rental_price, copies):
self.magNo = magNo
self.title = title
self.colorprint = colorprint
self.subject = subject
self.rental_price = rental_price
self.copies = copies
class EducationalDVD:
def __init__(self, DVD_no, title, subject, rental_price, copies):
self.DVD_no = DVD_no
self.title = title
self.subject = subject
self.rental_price = rental_price
self.copies = copies
class LectureCD:
def __init__(self, CD_no, title, subject, rental_price, copies):
self.CD_no = CD_no
self.title = title
self.subject = subject
self.rental_price = rental_price
self.copies = copies