Advertisement

Video 8-2 Hey, that's private! (part 1)

Video 8-2   Hey, that's private! (part 1) In this Java lesson, we are learning about the keywords "private" and "this". We are learning about "instance fields" which are also called "properties" and "member variables".
Mr. Stride at NCHS does a quick demonstration of getters & setters in the Point class. He will add an instance field for the distance to the origin and shows how setters allow the Point class to assure that this instance field is correctly updated when the position of the point is changed.

Java,North Creek High School,Mr. Stride,

Post a Comment

0 Comments