-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest1.py
32 lines (24 loc) · 893 Bytes
/
test1.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
class Resource():
def __init__(self, callID, title,isBorrowed):
self.callID = callID
self.title=title
self.isBorrowed = isBorrowed
def Resource():
class Book(Resource):
def __init__(self,callID, title,isBorrowed,Author):
self.Author = Author
class Journal(Resource):
def __init__(self,callID, title,isBorrowed, Issue):
self.Issue = Issue
write a driver class called library that can make use of the classes created in the python program that you have just generated.
the class should give an appropriate output after running the program like in the figure below:
call ID:QA76.1
title: my Book
not in the librabry
call ID: QA73.2
title: my baby
in the librabry
issue: March 2013
call ID: QA65.3
title:origin of the me
not in the librabry