Exam 4: Creating Your Own Classes

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

The keyword new is used as an operator to call constructor methods.

Free
(True/False)
4.9/5
(92)
Correct Answer:
Verified

True

Three of the contextual keywords associated with properties are get,set,and value.

Free
(True/False)
4.9/5
(85)
Correct Answer:
Verified

True

Local variables ____.

Free
(Multiple Choice)
4.8/5
(78)
Correct Answer:
Verified

A

A class is normally associated with a(n)____,which often describes a person,place,or thing and is normally a noun.

(Multiple Choice)
4.9/5
(87)

All data types are initialized to 0 when an object is constructed.

(True/False)
4.9/5
(74)

The return type for constructors is always the type of the class.

(True/False)
4.9/5
(67)

The ____________ constructor does not have any parameters and normally has no body,just opening and closing curly braces.

(Short Answer)
4.7/5
(81)

To add full functionality to your classes,____.

(Multiple Choice)
4.7/5
(73)

Constructors differ from other methods in that constructors ____.

(Multiple Choice)
4.7/5
(74)

ToString( ),Equals( ),GetType( ),and GetHashCode( )are all methods of the object class.

(True/False)
5.0/5
(72)

Accessors are also referred to as ____.

(Multiple Choice)
4.8/5
(73)

To define a property to change a data member of a class include a ____ clause.

(Multiple Choice)
4.8/5
(64)

Instance methods manipulate data by ____.

(Multiple Choice)
4.8/5
(74)

When you define the class,you describe its ____________,or characteristics or fields,in terms of data.

(Short Answer)
5.0/5
(76)

Class methods manipulate data by ____.

(Multiple Choice)
4.9/5
(78)

A standard convention used by C# programmers is to use camel case style for property identifiers;Camel case style convention is also used for data member identifiers.

(True/False)
4.9/5
(87)

____ are special methods used to read the current state or value of an object member's data.

(Multiple Choice)
4.9/5
(81)

When you define the class,you describe its ____ in terms of data and its behaviors,or methods,in terms of what kinds of things it can do.

(Multiple Choice)
4.8/5
(76)

The ToString( )method of the Console class should be overwritten.

(True/False)
4.7/5
(80)

Constructors should be defined with a ____ access modifier.

(Multiple Choice)
4.8/5
(78)
Showing 1 - 20 of 75
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)