Chapter2 Flashcards

1
Q

A(n) __________ is a blueprint of an object.

A

class

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q
A class that does not provide a complete implementation must be declared with the 
keyword \_\_\_\_\_\_\_\_\_\_
A

abstract

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

Classes that want to support comparison must implement the IComparable interface and
then provide a body for the __________ method.

A

CompareTo

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

You can use the __________ operator to check whether it is legal to cast one type to
another type.

A

is

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

Three main features of an object-oriented programming language are _________,
__________, and _ _________.

A

encapsulation, inheritance, polymorphism

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

You can use __________ to group related classes in order to reduce name collisions

A

namespaces

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

The __________ keyword refers to the current instance of a class.

A

this

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

A(n) __________ is a type that references a method

A

delegate

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

A(n) __________ is a value type, whereas a(n) __________ is a reference type

A

struct, class

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q
You can use the \_\_\_\_\_\_\_\_\_\_ keyword to declare a member that belongs to the class 
itself rather than to a specific object
A

static

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