CS 3101-1 - Programming Languages: Python
Object Oriented Python
Modules
CS 3101-1 - Programming Languages: Python
Lecture 3: OOP, Modules, Standard Library I
Daniel Bauer (bauer@cs.columbia.edu)
October 1 2014
Daniel Bauer
CS3101-1 Python - 03 - OOP/Modules and Packages
1/29
Object Oriented Python
Modules
Contents
Object Oriented Python
Modules
Daniel Bauer
CS3101-1 Python - 03 - OOP/Modules and Packages
2/29
Object Oriented Python
Modules
Object Oriented Python
Modules
Daniel Bauer
CS3101-1 Python - 03 - OOP/Modules and Packages
3/29
Object Oriented Python
Modules
Object Oriented Programming in Python
I
Object Oriented Programming (OOP) is at the core of
Python.
I
I
I
I
Everything is an object!
Operations are methods on objects.
Modularization.
We have seen examples of objects already:
I
I
Objects of built-in data types (int, str, list, dict ... ).
Functions.
I
Can create our own types (classes).
I
Python does not enforce OOP (unlike Java), but we need to
understand at least what is going on.
Daniel Bauer
CS3101-1 Python - 03 - OOP/Modules and Packages
4/29
Object Oriented Python
Modules
Objects, Attributes, Methods, Classes
I
Classes:
I
I
User defined types of objects (including their methods,
attributes, relations to other objects).
Can be instantiated into an object / is a ¡®blueprint¡¯ that
describes how to build an object.
Knights can eat, sleep, have a favorite color, and a title.
Daniel Bauer
CS3101-1 Python - 03 - OOP/Modules and Packages
5/29
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related download
- introduction to python programming introduction to object
- python classes and objects
- import somefile everything abc
- mit6 0001f16 python classes and inheritance
- mit6 0001f16 object oriented programming
- object oriented programming in python defining classes
- cs 3101 1 programming languages python
- ppyytthhoonn oobbjjeecctt oorriieenntteedd
- python object oriented
Related searches
- programming languages and their uses
- top programming languages 2019
- scientific programming languages ranking
- computer programming languages pdf
- history of programming languages timeline
- history of programming languages book
- programming languages history pdf
- all programming languages pdf books
- programming languages trends
- programming languages trend 2020
- most used programming languages 2019
- top programming languages tiobe