-
Notifications
You must be signed in to change notification settings - Fork 0
/
monitor.py
28 lines (25 loc) · 874 Bytes
/
monitor.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
#########################################
# This project is a lab assignment #
# for the Essential Skills Module. #
# University of Amsterdam #
# MSc in System and Network Engineering #
# Nick Trintafyllidis. #
# Use it as you wish :) #
#########################################
class DellMonitor(object):
def __init__(self):
self.make = "Dell"
self.model = "2209WAf"
self.size = "22 inch"
self.color = "Black & Silver"
self.connection="none"
def printinfo(self):
print "*****"
print "Make:" + self.make
print "Model:" + self.model
print "Size:" + self.size
print "Color:" + self.color
print "Connection:" + self.connection
print "*****"
def connect(self, connection):
self.connection = connection