-
Notifications
You must be signed in to change notification settings - Fork 0
/
mouse.py
27 lines (23 loc) · 800 Bytes
/
mouse.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
#########################################
# 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 DellMouse(object):
def __init__(self):
self.make = "Dell"
self.model = "MS111-L"
self.color = "Black"
self.connection = "none"
def printinfo(self):
print "*****"
print "Make:" + self.make
print "Model:" + self.model
print "Color:" + self.color
print "Connection:" + self.connection
print "*****"
def connect(self, connection):
self.connection = connection