Upload
ellen-evangelista
View
280
Download
0
Embed Size (px)
DESCRIPTION
my report
Citation preview
C# ObjectOrientedProgram
C# OOP
OOP is what C# is all about It supports structs C# garbage collector is far more
sophisticated
Structs:
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.
Garbage Collector:
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).
Reference: http://www.codersource.net/csharp_t
utorial_oops.html http://www.informit.com/articles/artic
le.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