Upload
ellen-evangelista
View
1.626
Download
1
Embed Size (px)
Citation preview
OOP is what C# is all about It supports structsC# garbage collector is far more
sophisticated
are like lightweight versions of classes. They're not reference types; they're
value types, so when you pass them to methods, they're passed by value.
They're like classes in many ways—they support constructors, for example (but not inheritance). They take up fewer resources in memory, so when you've got a small, frequently used class, give some thought to using a struct instead.
Destructors are actually called by the C# garbage collector Destructor - declared much like
constructors, except that their name is prefaced with a tilda (~).
the garbage collector deletes objects no longer referenced in your code automatically (at a time of its choosing).
http://www.codersource.net/csharp_tutorial_oops.html
http://www.informit.com/articles/article.aspx?p=101373
http://www.aspfree.com/c/a/ASP.NET-Code/A-Twisted-Look-at-Object-Oriented-Programming-in-C--Part-1/
http://www.dickbaldwin.com/csharp/Cs000108a.htm