Download presentation
Presentation is loading. Please wait.
1
Welcome back to Software Development!
2
Class Members Do review slides Finish MenuOption method project
Instances and static Create UserInput class
3
Class Members Methods
4
Class Members Methods – class algorithms
5
Class Members Methods – class algorithms
The actual code that does the work – the ‘algorithm’
6
Class Members Methods – class algorithms Fields
The actual code that does the work – the ‘algorithm’ Fields
7
Class Members Methods – class algorithms
The actual code that does the work – the ‘algorithm’ Fields – class variables any method of the class can use
8
Class Members Methods – class algorithms
The actual code that does the work – the ‘algorithm’ Fields – class variables any method of the class can use The data or information the class uses to do its job
9
Class Members Methods – class algorithms
The actual code that does the work – the ‘algorithm’ Fields – class variables any method of the class can use The data or information the class uses to do its job Properties
10
Class Members Methods – class algorithms
The actual code that does the work – the ‘algorithm’ Fields – class variables any method of the class can use The data or information the class uses to do its job Properties – “smart fields”
11
Class Members Methods – class algorithms
The actual code that does the work – the ‘algorithm’ Fields – class variables any method of the class can use The data or information the class uses to do its job Properties – “smart fields” Methods that look like fields…you can use them almost like variables
12
Class Members Methods – class algorithms
The actual code that does the work – the ‘algorithm’ Fields – class variables any method of the class can use The data or information the class uses to do its job Properties – “smart fields” Methods that look like fields…you can use them almost like variables They “protect” the class variables (fields)
13
Creating a class
14
Creating a class class nameOfClass {
members of the class (fields, properties, methods) }
15
Creating a class class nameOfClass {
members of the class (fields, properties, methods) }
16
Creating a class…adding fields
class MyClass { private int intField; private string strField; public int MyMethod(string strInputVariable) }
17
Creating a class…adding fields
class MyClass { private int intField; private string strField; public int MyMethod(string strInputVariable) }
18
Creating a class…adding fields
class MyClass { private int intField; private string strField; public int MyMethod(string strInputVariable) }
19
Creating a class…adding fields
class MyClass { private int intField; private string strField; public int MyMethod(string strInputVariable) }
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.