Shared Flashcard Set

Details

C# Terminology
Visual Studio 2008 / other versions
31
Computer Science
Undergraduate 3
12/11/2011

Additional Computer Science Flashcards

 


 

Cards

Term
accessible member
Definition
a member that can be accessed by a given type.  an accessible member for one type is not necessarily accessible to another type.  for more information, see access modifiers and friend assemblies.
Term
access modifier
Definition
A keyword, such as private, protected, internal, or public, that restricts access to a type or type member.  For more information, see Access Modifiers.
Term
accessor
Definition
a method that sets or retrieves the value of a private data member value that is associated with a property.  read-write properties have get and set accesors.  properties that are read-only have only a get accessor.  for more information, see properties.
Term
anonymous method
Definition
a code block that is passed as a parameter to a delegate.
Term
base class
Definition
a class that's inherited by another "drived" class.
Term
call stack
Definition
the series of method calls leading from the beginning of the program to the statement currently being executed at run time
Term
class
Definition
a data type that describes an object.  classes contain both data and the methods for acting on the data
Term
constructor
Definition
a special method on a class or struct that initializes the objects of that type
Term
delegate
Definition
a type that references a method.  once a delegate is assigned a method, it behaves exactly like that method
Term
derived class
Definition
a class that uses inheritance to gain, augment, or modify the behavior and data of another "base" class
Term
destructor
Definition
a special method on a class or struct that prepares the instance for destruction by the system
Term
event
Definition
a member of a class or struct that sends notifications of a change
Term
field
Definition
a data member of a class or struct that is accessed directly
Term
generics
Definition
allows you to define a class or method that are defined with a type parameter.  when client code instantiates the type, it specifies a particular type as an argument
Term
IDE
Definition

Itegrated Development Environment

the application that provides the unified user interface for the various development tools including the complier, debugger, code editor, and designers

Term
immutable type
Definition
a type whose instance data, fields, and properties does not change after the instance is created.  most value types are immutable
Term
inaccessible member
Definition
a member that cannot be accessed by a given type. an inaccessible member for one type is not necessarily inaccessible for another type.
Term
inheritance
Definition
C# supports inheritance, so a class that derives from another class, known as the base class, inherits the same methods and properties.  inheritance involves base classes and derived classes
Term
interface
Definition
a type that contains only the signatures of public methods, events, and delegates.  an object that inherits the interface must implement all of the methods and events defined in the interface.  classes or structs may inherit any number of interfaces.
Term
iterator
Definition
a method that enables consumers of a class that contains a collection or array to use foreach (in C# reference) to iterate through that collection or array
Term
member
Definition
a field, property, method, or event declared on a class or struct
Term
method
Definition
a named code block that provides behavior for a class or struct
Term
mutable type
Definition
a type whose instance data, fields and properties, can be changed after the instance is created.  more reference types are mutable
Term
nested type
Definition
a type declared within the declaration of another type
Term
object
Definition

an instance of a class

an object exists in memory, and has data and methods that act on the data

Term
property
Definition
a data member accessed by means of an accessor
Term
refactoring
Definition

reusing previously entered code

(for example) Visual C# Express Code Editor can intelligently reformat code to turn a block of highlight code into a method

Term
reference type
Definition

a data type

a variable declared as a reference type points to a location where data is stored

Term
static
Definition

a class or method declared as static exists without first being instantiated using the keyword new.

Main() is a static method

Term
struct
Definition

a compound data type that is typically used to contain a few variables that have some logical relationship.

structs can also contain methods and events.  structs do not support inheritance but they do support interfaces. 

a struct is a value type, while a class is a reference type.

Term
value type
Definition

a data type that is allocated on the stack, as opposed to a reference type which is allocated on the heap.

the built-in types, including the numeric types as well as the struct type and the nullable type, are all value types. 

the class type and string type are reference types.

Supporting users have an ad free experience!