CS42
Table of Contents
Book Index
Scratch ActiveCode
Instructor's Page
Edit Profile
Change Password
Register
Login
Navigation Help
Help for Instructors
About Runestone
Report A Problem
Page
CS61A Material
Background Reading
Object Oriented Programming - the Basics
OOP (Classes & Objects) - Digging a little deeper
CS61A Material
¶
Background Reading
¶
What Is Programming?
What Is Computer Science?
The Python Programming Language
Special Ways to Execute Python in this Book
More About Programs
Glossary
About the Python Shell
Object Oriented Programming - the Basics
¶
(From How To Think Like a Computer Scientist)
A change of perspective
Objects Revisited
User Defined Classes
Improving our Constructor
Adding Other Methods to our Class
Objects as Arguments and Parameters
Converting an Object to a String
Instances as Return Values
Glossary
OOP Exercises
OOP (Classes & Objects) - Digging a little deeper
¶
Fractions
Objects are Mutable
Sameness
Arithmetic Methods
Glossary
Exercises