U2L3- Attributes

What attributes does a Painter object have?
1 / 13
suivant
Slide 1: Question ouverte
Ap csa10th Grade

Cette leçon contient 13 diapositives, avec quiz interactifs, diapositives de texte et 1 vidéo.

time-iconLa durée de la leçon est: 30 min

Éléments de cette leçon

What attributes does a Painter object have?

Slide 1 - Question ouverte

How were those attributes changed?

Slide 2 - Question ouverte

Were we able to change them directly?

Slide 3 - Question ouverte

code.org
Level 1: Predict: Accessing Attributes

Slide 4 - Diapositive

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

Slide 5 - Question ouverte

When would encapsulation be useful?

Slide 6 - Question ouverte

Why would we use the keyword public

Slide 7 - Question ouverte

Why would we use the keyword private

Slide 8 - Question ouverte

Slide 9 - Vidéo

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 - Question ouverte

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

Slide 11 - Question ouverte

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

Slide 12 - Diapositive

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 - Diapositive