U2L3- Attributes

What attributes does a Painter object have?
1 / 13
next
Slide 1: Open question
Ap csa10th Grade

This lesson contains 13 slides, with interactive quizzes, text slides and 1 video.

time-iconLesson duration is: 30 min

Items in this lesson

What attributes does a Painter object have?

Slide 1 - Open question

How were those attributes changed?

Slide 2 - Open question

Were we able to change them directly?

Slide 3 - Open question

code.org
Level 1: Predict: Accessing Attributes

Slide 4 - Slide

What did you notice and wonder about the code in this program?

Slide 5 - Open question

When would encapsulation be useful?

Slide 6 - Open question

Why would we use the keyword public

Slide 7 - Open question

Why would we use the keyword private

Slide 8 - Open question

Slide 9 - Video

You just watched a video about instance variables and attributes. Get a paper and use the front side to advertise people about it

Slide 10 - Open question

Using the back, write 5 sentences of what you learned. If you have space, take notes

Slide 11 - Open question

hw
1. unit guide
2. extra practice
3. CFU

Slide 12 - Slide

vocab
access modifier - a keyword used to set the visibility of classes, variables, constructors, and methods
encapsulation - an object-oriented programming concept where the instance variables of a class are hidden from other classes and can be accessed only through the methods of the class
instance variable - a variable defined in a class that represents an attribute of an object

Slide 13 - Slide