Programming and Algorithms: Week 29

Banner

Object Orientated Programs

What are we doing this week?


This week we are going to look at MIGRATING programs from PROCEDURAL to OBJECT-ORIENTED PROGRAMMING, and looking at the PROPERTY function.

Python Python Logo

Powerpoint: Migrating to Object Oriented Programs


Powerpoint: Manager Objects



Total running time of videos is 35 minutes.

Sample Code:
Polygon Perimeter * Polygon Perimeter Class * Colour * Colour Getters and Setters * Colour Getters and Setters detailColour Getters and Setters property * Alife * ZipReplace


Getters and Setters


Property Decorators - Getters, Setters, and Deleters




Links
Programiz: Python Property
http://www.programiz.com/python-programming/property

Python Course: Properties
http://www.python-course.eu/python3_properties.php

MigrateUp.com: How Python Properties Help With Refactoring
https://migrateup.com/python-properties-refactoring/


Lab #29
Lab #29 is all about checking if what you have learned in the episodes above all makes sense, and if you can use the property function in Python.




Back

If you have any suggestions, corrections, or comments, please feel free to e-mail me at:
Damian.Gordon(a)dit.ie