-
6.1 Introduction to Classes and Objects
-
Video
6.1.1 What is a Class?
-
Check for Understanding
6.1.2 Quiz: Classes and Objects
-
Example
6.1.3 The Rectangle Class
-
Example
6.1.4 The Point Class
-
Example
6.1.5 The Student Class
-
Exercise
6.1.6 Using the Rectangle Class
-
Exercise
6.1.7 Calling A Method
-
Exercise
6.1.8 Using the Point Class
-
Exercise
6.1.9 Using the Student Class
-
6.2 Classes vs. Objects
-
Video
6.2.1 Classes and Objects
-
Check for Understanding
6.2.2 Classes vs. Objects vs. Instances
-
Example
6.2.3 Classes, Objects, and Instances
-
Example
6.2.4 Creating Rectangle Objects
-
Exercise
6.2.5 Text Messages
-
6.3 Using a Class as a Client
-
Video
6.3.1 How to Use a Class
-
Check for Understanding
6.3.2 Quiz: Client of a Class
-
Example
6.3.3 Using the Rectangle Class as a Client
-
Example
6.3.4 Using the Randomizer Class as a Client
-
Exercise
6.3.5 Coin Flips
-
Exercise
6.3.6 Longest Streak
-
Example
6.3.7 Testing the GeoLocation Class
-
Exercise
6.3.8 How Far Away is ...?
-
Badge
6.3.9 Client Badge
-
6.4 Writing Classes
-
Video
6.4.1 Constructors
-
Check for Understanding
6.4.2 Quiz: Constructors
-
Example
6.4.3 Rectangle toString
-
Example
6.4.4 Student toString
-
Exercise
6.4.5 toString for Flowers
-
Exercise
6.4.6 Instance Variables for Your Dog
-
Exercise
6.4.7 Student GPA Field
-
Free Response
6.4.8 Free Response: What instance variables?
-
Exercise
6.4.9 Pizza Time!
-
Exercise
6.4.10 Fractions
-
6.5 Writing Classes and Instance Methods
-
Video
6.5.1 Writing Instance Methods
-
Check for Understanding
6.5.2 Quiz: Writing Methods
-
Example
6.5.3 Area of a Rectangle
-
Example
6.5.4 Moving a Point
-
Exercise
6.5.5 Writing getPerimeter()
-
Exercise
6.5.6 Honors Students
-
Exercise
6.5.7 Batting Average
-
Exercise
6.5.8 Distance in Kilometers
-
Resource
6.5.9 Combination Lock FRQ
-
6.6 Getter and Setter Methods
-
Video
6.6.1 Getter and Setter Methods
-
Check for Understanding
6.6.2 Quiz: Getter and Setter Methods
-
Example
6.6.3 Rectangle Getter Methods
-
Example
6.6.4 Student Getter Methods
-
Exercise
6.6.5 Text Messages Getter Methods
-
Exercise
6.6.6 Fractions Getter/Setter Methods
-
Exercise
6.6.7 Full Fraction Class
-
Exercise
6.6.8 Full Dragon Class
-
Exercise
6.6.9 A Different Dragon Class
-
6.7 Class Methods and Class Variables
-
Video
6.7.1 Static Methods and Variables (Class Methods and Class Variables)
-
Check for Understanding
6.7.2 Quiz: Static Methods
-
Example
6.7.3 Student Class Variables and Methods
-
Example
6.7.4 Using the Math Class
-
Example
6.7.5 Using Randomizer
-
Example
6.7.6 Static Variables: Circle
-
Exercise
6.7.7 The Unit Circle
-
Exercise
6.7.8 How Many Players in the Game?
-
Exercise
6.7.9 Circle Area, another way
-
Practice
6.7.10 Rock, Paper, Scissors: Get Winner
-
Exercise
6.7.11 Rock, Paper, Scissors!
-
6.8 Wrapper Classes
-
Video
6.8.1 Wrapper Classes
-
Check for Understanding
6.8.2 Quiz: Wrapper Classes
-
Example
6.8.3 Creating Integers
-
Example
6.8.4 Using Doubles
-
Example
6.8.5 Autoboxing Example
-
Exercise
6.8.6 Order Up!
-
Exercise
6.8.7 Currency
-
Exercise
6.8.8 Guess the number!
-
6.9 Method Overloading
-
Video
6.9.1 Method Overloading
-
Check for Understanding
6.9.2 Method Overloading Quiz
-
Example
6.9.3 Sum Method Overloading
-
Example
6.9.4 Constructor Overloading
-
Exercise
6.9.5 Average Method Overloading
-
Badge
6.9.6 Overloading Badge
-
6.10 Local Variables and Scope
-
Video
6.10.1 Local Variables and Scope
-
Check for Understanding
6.10.2 Local Variables and Scope Quiz
-
Example
6.10.3 Instance Variable Scope
-
Example
6.10.4 Local Variable Scope
-
Example
6.10.5 Variable Shadowing
-
Exercise
6.10.6 Which Variables Exist?
-
6.11 Key Terms for Classes
-
Video
6.11.1 Key Terms for Classes
-
Check for Understanding
6.11.2 Quiz: This Keyword
-
Example
6.11.3 Rectangles and this
-
Exercise
6.11.4 Batteries
-
Exercise
6.11.5 Write Your Own CodeHS
-
6.12 Objects vs Primitives
-
Video
6.12.1 Objects vs Primitives
-
Check for Understanding
6.12.2 Objects vs Primitives Quiz
-
Example
6.12.3 Comparing Rectangles
-
Example
6.12.4 Changing Dogs
-
Example
6.12.5 Null Pointer Exception
-
Free Response
6.12.6 Objects vs Primitives
-
Exercise
6.12.7 Comparing Circles
-
6.13 Inheritance
-
Video
6.13.1 Inheritance
-
Check for Understanding
6.13.2 Quiz: Subclasses and Superclasses
-
Example
6.13.3 Square is a Rectangle
-
Exercise
6.13.4 Clothing Store
-
Badge
6.13.5 Inheritance Badge
-
6.14 Class Design and Abstract Classes
-
Video
6.14.1 Class Design and Abstract Classes
-
Check for Understanding
6.14.2 Quiz: Class Design
-
Example
6.14.3 The Shape Hierarchy
-
Example
6.14.4 Classes for Dessert
-
Exercise
6.14.5 Finding The Perimeters
-
6.15 Polymorphism
-
Video
6.15.1 Polymorphism
-
Check for Understanding
6.15.2 Quiz: Polymorphism
-
Example
6.15.3 Animal Sounds
-
Example
6.15.4 Shape Areas
-
Exercise
6.15.5 Fun with Solids
-
6.16 Object Superclass
-
Video
6.16.1 Object Superclass
-
Check for Understanding
6.16.2 Quiz: Object Superclass
-
Example
6.16.3 Default Values
-
Example
6.16.4 Override toString
-
Example
6.16.5 Override equals
-
Exercise
6.16.6 Equal?
-
Exercise
6.16.7 Equals? - Part 2
-
Exercise
6.16.8 Equal Rectangles
-
Exercise
6.16.9 2D Array Tester
-
6.17 Interfaces
-
Video
6.17.1 Interfaces
-
Check for Understanding
6.17.2 Quiz: Interfaces
-
Example
6.17.3 Comparable Interface
-
Example
6.17.4 Summable Interface
-
Exercise
6.17.5 Fraction is Comparable
-
Exercise
6.17.6 City is Summable
-
Badge
6.17.7 Classes and Object-Oriented Programming Badge
-
6.18 Ethical and Social Implications of Computing
-
Video
6.18.1 Implications of Computing Systems
-
Free Response
6.18.2 Computing and Your Life
-
Check for Understanding
6.18.3 Quiz: Ethical and Social Impact
-
Connection
6.18.4 ACM General Ethical Principles
-
Free Response
6.18.5 ACM General Ethical Principles
-
Connection
6.18.6 Bias in Facial Recognition
-
Free Response
6.18.7 Bias in Facial Recognition
-
Connection
6.18.8 Self-driving Cars
-
Free Response
6.18.9 Self-driving Cars
-
6.19 Classes and Object-Oriented Programming Quiz
-
Unit Quiz
6.19.1 Classes and Object-Oriented Programming Quiz