Presentation is loading. Please wait.

Presentation is loading. Please wait.

Welcome back to Software Development!

Similar presentations


Presentation on theme: "Welcome back to Software Development!"— Presentation transcript:

1 Welcome back to Software Development!

2 Reading Questions

3 Reading Questions What are scope modifiers (public/private)

4 Reading Questions What are scope modifiers (public/private)
Qualify what can access the name (either inside or outside the class)

5 Reading Questions What are scope modifiers (public/private)
Qualify what can access the name (either inside or outside the class) Now called access modifiers

6 Reading Questions What are scope modifiers (public/private)
Qualify what can access the name (either inside or outside the class) Now called access modifiers private – it is “PB” (private business)

7 Reading Questions What are scope modifiers (public/private)
Qualify what can access the name (either inside or outside the class) Now called access modifiers private – it is “PB” (private business) Can only use it from inside the class it is part of

8 Reading Questions What are scope modifiers (public/private)
Qualify what can access the name (either inside or outside the class) Now called access modifiers private – it is “PB” (private business) Can only use it from inside the class it is part of public – it is “public knowledge”

9 Reading Questions What are scope modifiers (public/private)
Qualify what can access the name (either inside or outside the class) Now called access modifiers private – it is “PB” (private business) Can only use it from inside the class it is part of public – it is “public knowledge” The “general public” (anyone outside the class) can use/change it

10 Reading Questions What are scope modifiers (public/private)
Qualify what can access the name (either inside or outside the class) Now called access modifiers private – it is “PB” (private business) Can only use it from inside the class it is part of public – it is “public knowledge” The “general public” (anyone outside the class) can use/change it Scope exercise…

11 Reading Questions What are scope modifiers (public/private)
Qualify what can access the name (either inside or outside the class) Now called access modifiers private – it is “PB” (private business) Can only use it from inside the class it is part of public – it is “public knowledge” The “general public” (anyone outside the class) can use/change it Scope exercise… Curly braces create a “block” of code

12 Reading Questions What are scope modifiers (public/private)
Qualify what can access the name (either inside or outside the class) Now called access modifiers private – it is “PB” (private business) Can only use it from inside the class it is part of public – it is “public knowledge” The “general public” (anyone outside the class) can use/change it Scope exercise… Curly braces create a “block” of code Scope means “where the name can be used”

13 Reading Questions What are scope modifiers (public/private)
Qualify what can access the name (either inside or outside the class) Now called access modifiers private – it is “PB” (private business) Can only use it from inside the class it is part of public – it is “public knowledge” The “general public” (anyone outside the class) can use/change it Scope exercise… Curly braces create a “block” of code Scope means “where the name can be used” Determined by the curly braces { } that surround it

14 Reading Questions What are scope modifiers (public/private)
Qualify what can access the name (either inside or outside the class) Now called access modifiers private – it is “PB” (private business) Can only use it from inside the class it is part of public – it is “public knowledge” The “general public” (anyone outside the class) can use/change it Scope exercise… Curly braces create a “block” of code Scope means “where the name can be used” Determined by the curly braces { } that surround it Inner blocks have access to stuff in outer blocks’ scope

15 Reading Questions What are scope modifiers (public/private)

16 Reading Questions What are scope modifiers (public/private)
What are properties (Set/Get)?

17 Reading Questions What are scope modifiers (public/private)
What are properties (Set/Get)? Methods

18 Reading Questions What are scope modifiers (public/private)
What are properties (Set/Get)? Methods The actual code that does the work

19 Reading Questions What are scope modifiers (public/private)
What are properties (Set/Get)? Methods The actual code that does the work Fields

20 Reading Questions What are scope modifiers (public/private)
What are properties (Set/Get)? Methods The actual code that does the work Fields What the book calls “instance variables”

21 Reading Questions What are scope modifiers (public/private)
What are properties (Set/Get)? Methods The actual code that does the work Fields What the book calls “instance variables” The data or information the class uses

22 Reading Questions What are scope modifiers (public/private)
What are properties (Set/Get)? Methods The actual code that does the work Fields What the book calls “instance variables” The data or information the class uses The class variables that any method of the class can use

23 Reading Questions What are scope modifiers (public/private)
What are properties (Set/Get)? Methods The actual code that does the work Fields What the book calls “instance variables” The data or information the class uses The class variables that any method of the class can use Properties

24 Reading Questions What are scope modifiers (public/private)
What are properties (Set/Get)? Methods The actual code that does the work Fields What the book calls “instance variables” The data or information the class uses The class variables that any method of the class can use Properties Sometimes called “smart fields”

25 Reading Questions What are scope modifiers (public/private)
What are properties (Set/Get)? Methods The actual code that does the work Fields What the book calls “instance variables” The data or information the class uses The class variables that any method of the class can use Properties Sometimes called “smart fields” Methods that look like fields…you can use them almost like variables

26 Reading Questions What are scope modifiers (public/private)
What are properties (Set/Get)? Methods The actual code that does the work Fields What the book calls “instance variables” The data or information the class uses The class variables that any method of the class can use Properties Sometimes called “smart fields” Methods that look like fields…you can use them almost like variables They “protect” the class variables (fields)

27 Reading Questions What are scope modifiers (public/private)
What are properties (Set/Get)?

28 Reading Questions What are scope modifiers (public/private)
What are properties (Set/Get)? What is an instance (static and new)?

29 Reading Questions What are scope modifiers (public/private)
What are properties (Set/Get)? What is an instance (static and new)? What are instance variables?

30 Reading Questions What are scope modifiers (public/private)
What are properties (Set/Get)? What is an instance (static and new)? What are instance variables? What are filters?


Download ppt "Welcome back to Software Development!"

Similar presentations


Ads by Google