Python基础 · free preview
Classes and Objects
Define classes that bundle data with behavior, create independent instances, and extend existing classes by inheritance.
1. Overview
Overview
2. Grouping Data in Objects
Grouping Data in Objects
3. Giving Objects Behavior
Giving Objects Behavior
4. Every Instance Is Independent
Every Instance Is Independent
5. Inheriting Behavior
Inheriting Behavior
6. A Rectangle Class
A Rectangle Class
7. Extend the Rectangle
Extend the Rectangle
Practice this interactively
Free account · instant grading · spaced review that schedules itself.
Start this course for free