Created
October 29, 2014 13:31
-
-
Save blackcorvidae/bf7abaf92f163106eb19 to your computer and use it in GitHub Desktop.
Introduction to Problem Solving and Programming-Python Section: 001 Fall 2014 - Lab 6 Classes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Product: | |
def __init__(self): | |
pass | |
name = "Product Name" | |
description = "Product Description" | |
def profile(self): | |
return self.name + "\n" + self.description | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Store: | |
def __init__(self): | |
pass | |
name = "Store Name" | |
description = "Store Description" | |
def profile(self): | |
return self.name + "\n" + self.description | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment