Introduction to Computer Science in C#
30 Nov 2021
Context
C# Data and Operations
Defining Functions of your Own
Basic String Operations
Decisions
While Loops
Foreach Loops
For Loops
Files, Paths, and Directories
Arrays
Lists
Dictionaries
Classes and Object-Oriented Programming
A First Example of Class Instances: Contact
Class Instance Examples
The Rational Class
Planning A Class Structure
Classes And Structs
Defining Operators (Optional)
Chapter Review Questions
Testing
Interfaces
Recursion
Data Structures
Appendix
Introduction to Computer Science in C#
»
Classes and Object-Oriented Programming
View page source
Classes and Object-Oriented Programming
A First Example of Class Instances: Contact
Making a Datatype
Class Syntax
Instance Variables
Constructors
Instance Methods
Getters
This Object
Setters
ToString Override
Local Variables Hiding Instance Variables
Class Instance Examples
More Getters and Setters
Converting A Static Game To A Game Instance
Animal Class Lab
Clock Example
The Rational Class
Method Parameters of the Same Type
Pictorial Playing Computer
ForceMatch Exercise
Planning A Class Structure
Classes And Structs
Defining Operators (Optional)
Operator Overloading
Casts in User-Defined Classes
Chapter Review Questions