Classes &
Objects
Week 6
1
Helping Hand for Relief & Development
Goal of this lesson
2
Key Terms
3
We will learn about these terms in the next slides
What are Classes?
4
What are Classes?
5
What are Classes?
6
Object
7
Examples
8
Why are Classes important?
9
How do we create one?
10
How do we create one?
11
How do we create one?
12
How do we create one?
13
Instance Variables
14
Constructors
15
Constructors
16
Constructors
17
Constructors
18
Your Turn! (Exercise 1)
19
Solution
20
Adding Methods
21
Adding Methods
22
Getters and Setters
23
Access Modifiers (Brief)
24
Getters and Setters
25
Exercise 2
26
Solution
27
Key Terms
28
Define these terms in your own words, we will go over them in a minute
Key Terms
29
Key Terms
30
What We Learned
31
Homework
32
Extra Reading
33
Questions?
34
Feel free to ask!