Page 1 : 29
Object-oriented Programming in C#
Classes and Objects
* Classes: An Initial Example
The Die Class
Clients and Servers
Message Passing
* Classes
Classes
Visibility - the Iceberg Analogy
Visible and Hidden aspects
Program modification - the Fire Analogy
Representation Independence
Classes in C#
Overview of members in classes
Instance Variables
Instance Methods
Class Variables
Class Methods
Static Classes and Partial Classes in C#
Constant and readonly variables
Objects and Classes
The current object - this
Visibility Issues
* Creating and Deleting Objects
Creating and Deleting Objects
Instantiation of classes
Instantiation of classes in C#
Initialization of objects
Constructors in C#
Copy constructors
Initialization of class variables
Classes: An Initial Example