Chapter Three - Object Oriented Fundametals in C#
Chapter Three - Object Oriented Fundametals in C#
Object-Oriented
Fundamentals in C#
Language Fundamentals
13
Jun 21, 2024
Naming Rules...
Always use standard names for objects
Numbers, letters, & underscore
Must start with letter or underscore
No spaces or punctuation marks
3 letter lowercase prefix identifies control type
14
Jun 21, 2024
Recommended Naming Conventions
Object Class Prefix Example
Form frm frmDataEntry
Button btn btnExit
TextBox txt txtUserName
Label lbl lblName
17
Variables – Scope & Lifetime
19
Decision Statements
22
Cont’d…
Functions Description
string.Trim Removes leading and trailing spaces
30
String Manipulation
31
String Manipulation
33
String Manipulation
35
String Manipulation
41
Properties and Events
45
Cont’d…
Customer Class
47
Cont’d…