Skip to main content
Guest
My Media
My Playlists
My History
Login
Search
Add New
Media Upload
Guest
My Media
My Playlists
My History
Login
Cornell University
Cornell University
Close search in video box
Home
Channels
My Media
Help
Back
Top
All
Home
Channels
My Media
Help
Something went wrong
An error occurred, please try again later.
Try again
Lesson 20.5 Method Definitions
From
Hannah Lee
October 27, 2020
122 plays
122
Related Media
Loading…
Details
Details
.
.
.
Details
.
.
.
Back
In addition to attributes, objects also have methods. In this video, we show how to add a method definition to a class. For the most part, it is as simple as indenting a function definition inside of the class definition.
Tags
method
object
distance
definition
class
parentheses
function
point
period
precondition
parameter
specification
arguments
argument
difference
parameters
python
error
thing
header
Looking for more...