Facebook
From Queen Moth, 4 Years ago, written in Plain Text.
This paste is a reply to 6class from Mungo Cassowary - go back
Embed
Viewing differences between 6class and 10 class
class Address:
    def __init__(self,street, city, state):
        self.__street = street
        self.__city = city
        self.__state = state
    def __str__(self):
        return(self.__street+" , "+self.__city+" , "+self.__state)
        
        
        
from Address import Address
class Person:
    def __init__(self,name, age, address):
        self.__name = name
        self.__age = age
        self.__address = address
    def __str__(self):
        return(self.__name+" is a person who is "+str(self.__age)+" years old and lives in the following address : "+str(self.__address))