Lecture 17: Python Classes

Sdílet
Vložit
  • čas přidán 10. 04. 2024
  • MIT 6.100L Introduction to CS and Programming using Python, Fall 2022
    Instructor: Ana Bell
    View the complete course: ocw.mit.edu/courses/6-100l-in...
    CZcams Playlist: • MIT 6.100L Introductio...
    Prof. Bell discusses how classes make it easy to reuse code. Each class has a separate environment (no collision on function names) and inheritance allows subclasses to redefine or extend a selected subset of a superclass’ behavior.
    License: Creative Commons BY-NC-SA
    More information at ocw.mit.edu/terms
    More courses at ocw.mit.edu
    Support OCW at ow.ly/a1If50zVRlQ
    We encourage constructive comments and discussion on OCW’s CZcams and other social media channels. Personal attacks, hate speech, trolling, and inappropriate comments are not allowed and may be removed. More details at ocw.mit.edu/comments.

Komentáře • 1