Exemplo n.º 1
0
def main():
    build = Building("Math Building", 25)
    build2 = Building("Science Building", 17)
    camp = Campus()
    build.get_info()
    build2.get_info()
    camp.add_building(build)
    camp.add_building(build2)
    camp.get_info()
Exemplo n.º 2
0
Arquivo: main.py Projeto: NOdoff/OOP
def main():
    b = Building("Math Building", 25)
    c = Campus()
    n = Building("Science Building", 17)
    b.get_info()
    n.get_info()
    c.add_building(b)
    c.add_building(n)
    c.get_info()
Exemplo n.º 3
0
def main():
    mb = Building('"Math Building"', 25)
    sb = Building('"Science Building"', 17)
    mb.get_info()
    sb.get_info()

    campus_total = Campus('"Math Building"', 1, 25)
    campus_total.add_building('"Science Building"', 1, 17)
    campus_total.get_info()
    campus_total.name_b()
Exemplo n.º 4
0
def main():
    math_building = Building("Math Building", 25)
    math_building.get_info()

    science_building = Building("Science Building", 17)
    science_building.get_info()

    my_campus = Campus()
    my_campus.add_building(math_building)
    my_campus.add_building(science_building)
    my_campus.get_info()
Exemplo n.º 5
0
from building import Building
from campus import Campus

if __name__ == '__main__':
    bd = Building("Math Building", 25)
    bd2 = Building("Science Building", 17)
    bd.get_info()
    bd2.get_info()
    cp = Campus()
    cp.add_building(bd)
    cp.add_building(bd2)
    cp.get_info()
Exemplo n.º 6
0
from building import Building
from campus import Campus

if __name__ == "__main__":
    buildings = (Building("MathBuilding", 25), Building("ScienceBuilding", 17))
    campus = Campus()
    for building in buildings:
        campus.add_building(building)
        building.get_info()
    campus.get_info()



Exemplo n.º 7
0
from building import Building
from campus import Campus

obj = Campus()

mathb = Building("MATH BUILDING", 300)
mathb.get_info()

sci = Building("Science BUILDING", 700)
sci.get_info()

obj.add_building(mathb)
obj.get_info()

obj.add_building(sci)
obj.get_info()