C# Flashcards

1
Q

access modifier

A

A keyword, such as private, protected, internal, or public, that restricts access to a type or type member.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

accessible member

A

A member that can be accessed by a given type. An accessible member for one type is not necessarily accessible to another type.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

accessor

A

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 accessors. Properties that are read-only have only a get accessor.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

anonymous method

A

An anonymous method is a code block that is passed as a parameter to a delegate.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

base class

A

A class that is inherited by another ‘derived’ class.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

call stack

A

The series of method calls leading from the beginning of the program to the statement currently being executed at run time.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

class

A

A data type that describes an object. Classes contain both data, and the methods for acting on the data.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

constructor

A

A special method on a class or struct that initializes the objects of that type.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

delegate

A

A delegate is a type that references a method. Once a delegate is assigned a method, it behaves exactly like that method.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

derived class

A

A class that uses inheritance to gain, augment, or modify the behavior and data of another ‘base’ class.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

destructor

A

A special method on a class or struct that prepares the instance for destruction by the system.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

event

A

A member of a class or struct that sends notifications of a change.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

field

A

A data member of a class or struct that is accessed directly.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

generics

A

Generics allow you to define a class and or method that are defined with a type parameter. When client code instantiates the type, it specifies a particular type as an argument.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

IDE

A

Integrated Development Environment. The application that provides the unified user interface for the various development tools including the compiler, debugger, code editor, and designers.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

immutable type

A

A type whose instance data, fields and properties, does not change after the instance is created. Most value types are immutable.

17
Q

inaccessible member

A

A member that cannot be accessed by a given type. An inaccessible member for one type is not necessarily inaccessible to another type.

18
Q

inheritance

A

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.

19
Q

interface

A

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.

20
Q

iterator

A

An iterator is 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.

21
Q

member

A

A field, property, method, or event declared on a class or struct.

22
Q

method

A

A named code block that provides behavior for a class or struct.

23
Q

mutable type

A

A type whose instance data, fields and properties, can be changed after the instance is created. Most Reference Types are mutable.

24
Q

nested type

A

A type declared within the declaration of another type.

25
Q

object

A

An instance of a class. An object exists in memory, and has data and methods that act on the data.

26
Q

property

A

A data member accessed by means of an accessor.

27
Q

refactoring

A

Reusing previously entered code. The Visual C# Express Code Editor can intelligently reformat code to, for example, turn a block of highlight code into a method.

28
Q

reference type

A

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

29
Q

static

A

A class or method declared as static exists without first being instantiated using the keyword new. Main() is a static method.

30
Q

struct

A

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.

31
Q

value type

A

A value type is 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.