Lec 15 | MIT 6.00 Introduction to Computer Science and Programming, Fall 2008

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
22,934
Loading...
Alert icon
Sign in or sign up now!
Alert icon
There is no Interactive Transcript.

Uploaded by on Aug 19, 2009

Lecture 15: Abstract data types, classes and methods

Instructors: Prof. Eric Grimson, Prof. John Guttag

View the complete course at: http://ocw.mit.edu/6-00F08

License: Creative Commons BY-NC-SA
More information at http://ocw.mit.edu/terms
More courses at http://ocw.mit.edu

  • likes, 1 dislikes

Link to this comment:

Share to:

Top Comments

  • Python has "private" class variables. Name them with double underscore first and they become unavailable with direct access.

    class a():

    def __init__(self, x):

    self.__x = x

    A = a(5)

    print A.__x

  • "Double underscore" is often reffered to as "dunder".

    __init__ therefor becomes "dunder init dunder".

    Much easier to pronounce.

see all

All Comments (13)

Sign In or Sign Up now to post a comment!
  • if you not sure about classes..here is better lec online

    search from 33- 38 in utube

    Python Programming Tutorial - 37 - Constructors

  • @loko95ftp i think its an awesome start to learn how to think..if you want to learn basic python..lookfor Google Python Class have a great 2 days course online.

  • Thanks for the upload MIT. It was a great help.

  • __mifflin is therefore referred to as "dunder mifflin"

    :p

  • very good teacher...

  • at 27:05

  • is that redhead on the left sleeping? or possibly dead?

  • Very nice, Hi from Greece

  • they dont get much into the syntax they just teach what programing involves

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more