Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class File:
- def __init__(self):
- self._filePath = ""
- self._fileName = ""
- self._numLines = 0
- def getPath(self):
- return self._filePath
- def setPath(self, newPath):
- self._filePath = str(newPath)
- def getName(self):
- return self._fileName
- def setName(self, newName):
- self._fileName = str(newName)
- def getLines(self):
- return self._numLines
- def setLines(self, newLines):
- self._numLines = int(newLines)
- def __str__(self):
- outputString = "Path to File: " + self._filePath + "Filename: " + self._fileName + "Number of Lines: " + str(self._numLines)
- return outputString
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement