Working with Objects in C#
Working with Objects in C#: Working with Objects in C#: an overview, What is an Object?, Defining an Object, Writing the Class in C#, What is a Constructor?.
Updated
- Working with Objects in C#: an overview (Novice): Object-oriented programming models software on the things around us, objects that each know some facts and do some jobs.
- What is an Object? (Novice): Every object has a responsibility; finding the objects in a problem, and the job of each, is the first step in designing a program.
- Defining an Object (Apprentice): An object's responsibilities split into what it knows (its state) and what it does (its behavior), and a class is the blueprint that describes both.
- Writing the Class in C# (Apprentice): Turn a class design into C# with private fields and public methods, then create objects with new and call their methods.
- What is a Constructor? (Apprentice): A constructor runs when an object is created and gives it the starting values it needs; use this to tell a field from a parameter of the same name.