Reading
Read pages 26 through the bottom of page 28. Undestand the picture and its associated description on page 27.
Code
Add the public/private key words to your animal class in the Claass project as you see on page 27. Then try to access the fields of your animal class from your Main function.
Sunday, June 29, 2008
Friday, June 27, 2008
Class and Fields Re-visited
Reading
Re-read pages 13 through 25 of C# for Sharp Kids.
Code
Re-read pages 13 through 25 of C# for Sharp Kids.
Code
- Create a new console application called Classes. Add a new class called Animal. (Project->Add Class..., then rename the file from Class1.cs to Animal.cs).
- Edit your Animal class to make it look like what you see on page 23.
- In your Main function of your Program.cs file, try to use your class as you see on page 24.
- Build and correct errors. Feel free to experiment.
Thursday, June 26, 2008
Object-Oriented Programming and Data Types
Reading
Read the C# For Sharp Kids starting from the section entitled "The Object-Oriented Approach Summarized". Continue reading to where the binder clip is. Some of this is re-reading from yesterday. Pay attention to the notes I made in the document.
The new reading section talks about data types and fields. This should be like a review, however they do a good job of explaining it here.
Code Study
Look at Program2. It is in "D:\John's Documents\MSDN\Csharp for Sharps Kids\Examples - CSharp\Program2". The program is very similar to what you have been writing. I placed comments in the code directed at you.
Read the C# For Sharp Kids starting from the section entitled "The Object-Oriented Approach Summarized". Continue reading to where the binder clip is. Some of this is re-reading from yesterday. Pay attention to the notes I made in the document.
The new reading section talks about data types and fields. This should be like a review, however they do a good job of explaining it here.
Code Study
Look at Program2. It is in "D:\John's Documents\MSDN\Csharp for Sharps Kids\Examples - CSharp\Program2". The program is very similar to what you have been writing. I placed comments in the code directed at you.
Subscribe to:
Posts (Atom)
