Search for tag: "classes"

Lesson 24.2 The isinstance Function

In this video, we show that we can solve the problem of strict typing by using the isinstance function. This function will be our preferred way for enforcing preconditions going forward.

From  Hannah Lee on November 12th, 2020 27 plays

Lesson 22.4 The Subclass Hierarchy

Since every class other than object must be a subclass of another class, this can lead to some interesting “family trees” of classes. In this video we look at Kivy classes, and see how…

From  Hannah Lee on November 8th, 2020 28 plays

Lesson 22.3 The object Class

Every class must be a subclass of something, and that parent class goes inside of the parentheses. That means that the word object we have been using in all of class definitions is actually a class.…

From  Hannah Lee on November 8th, 2020 28 plays

Lesson 22.1 Classes and Code Reuse

In this video we motivate the conept of subclasses by looking at a potential application. As software becomes more and more complex, we have to leverage features that allow us to work with other,…

From  Hannah Lee on November 8th, 2020 30 plays

Zoom Oct. 29. Classes

In this presentation, we review the class definition. We look at both the syntax (what must be present for the definition to work) and the semantics (how it is processed in Python).Most of this class…

From  Hannah Lee on October 30th, 2020 7 plays

Lesson 21.1 Interface vs Implementation

When we implement (or define) a function, we are given a specification and we complete the rest of the body to match the specification. We will do the same thing for classes as well. But as we see in…

From  Hannah Lee on October 30th, 2020 42 plays

Lesson 20.1 Class Definitions

In this video we show you the basic format of a class definition. However, classes can contain a lot of features, so our classes will be very simple for this demonstration.

From  Hannah Lee on October 27th, 2020 38 plays

Lesson 11.6 Attribute Invariants

When you work on Assignment 3, you will discover that the color objects have some significant restrictions on how they can be used. These restrictions are called attribute invariants, and they are…

From  Hannah Lee on October 2nd, 2020 7 plays

Lesson11.2 Object Instantiation

Because classes are not built into Python, they do not have literals. So how do we create objects? In this video, we address instantiation which is how do this.

From  Hannah Lee on October 2nd, 2020 10 plays

Lesson 11.1 Objects and Classes

In this video we have to introduce some new terminology. We talk about classes, which are new types that are provided by modules (and therefore not built into Python). Objects are the values for…

From  Hannah Lee on October 2nd, 2020 8 plays

I Love Reading workshop

ILR I Love Reading workshop with Mike Chen from the Learning Strategy Center

From  Jessie Mancilla on September 17th, 2020 2 plays

Digital Life Seminar | Fall Introduction

Presenter: Professor Helen Nissenbaum, with Margot Hanley and Michael Byrne.

From  Michael Byrne on September 2nd, 2020 10 plays

IES Hosts: David Ost "Populism, Fascism, and Why So Many Workers Turn from Left to Right"

"Populism, Fascism, and Why So Many Workers Turn from Left to Right" David Ost Professor of Political Science, Hobart and William Smith Colleges, Regional Fellow, Institute for European…

From  Pamela Hampton on August 13th, 2020 207 plays

Covid-Era Laboratory Teaching: Part 3

In this first meeting instructors will have the opportunity to discuss plans for in-person labs with technology for remote participation, virtual labs, and more. Cornell lab instructors will present…

From  Dave Winterstein on August 7th, 2020 7 plays

Covid-Era Laboratory Teaching: Part 2

In this first meeting instructors will have the opportunity to discuss plans for in-person labs with technology for remote participation, virtual labs, and more. Cornell lab instructors will present…

From  Dave Winterstein on August 7th, 2020 13 plays

Covid-Era Laboratory Teaching: Part 1

In this first meeting instructors will have the opportunity to discuss plans for in-person labs with technology for remote participation, virtual labs, and more. Cornell lab instructors will present…

From  Dave Winterstein on August 7th, 2020 14 plays