lect4 - Yin Lou CS 2026, Spring 2010 C# types Value types...

Info iconThis preview shows pages 1–6. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Yin Lou CS 2026, Spring 2010 C# types Value types Built-in types User-defined types Enumerations Reference types instance variables: A field declared without the static modifier is called an instance variable. Boxing and unboxing C# arrays Basic C# features: OO features Accessibility Virtual and override Class members Properties Indexers Operator Function parameters Public Accessible by any code in current program or other programs Protected Accessible only by code in current class or derived classes Internal Access limited to this program Protected internal Accessible by code from current program or by a derived class in another program Private Accessible only by this class The virtual keyword modifies methods to allow for overriding in derived classes By default methods are not virtual You cannot override non-virtual methods Unlike Java, in which methods are all virtual by default...
View Full Document

This document was uploaded on 03/15/2010.

Page1 / 15

lect4 - Yin Lou CS 2026, Spring 2010 C# types Value types...

This preview shows document pages 1 - 6. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online