Exam 4: Creating Your Own Classes

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

To add full functionality to your classes, ____.

(Multiple Choice)
4.9/5
(40)

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

(True/False)
4.8/5
(32)

A property resembles a(n) ____, but is more closely aligned to a(n) ____.

(Multiple Choice)
4.8/5
(30)

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.7/5
(35)

Design your classes to be as flexible and full-featured as possible. One way to do this is to include multiple instance data members.

(True/False)
4.9/5
(45)

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

(True/False)
4.8/5
(30)

With the object-oriented approach, objects send messages to other objects and receive messages from objects.

(True/False)
4.8/5
(35)

Data members should be defined with an access mode of ____________.

(Short Answer)
4.7/5
(33)

In order to provide a new definition for the ToString( ) method, ____.

(Multiple Choice)
4.7/5
(39)

Instance methods are ____.

(Multiple Choice)
4.9/5
(35)

Constructors are used to ____________ a class.

(Short Answer)
4.8/5
(37)

Accessors are also referred to as ____.

(Multiple Choice)
4.9/5
(35)

In order to test a class, ____.

(Multiple Choice)
4.9/5
(42)

A constructor is used to instantiate a class from an object.

(True/False)
4.9/5
(37)

Mutators are special types of methods used to create objects.

(True/False)
4.8/5
(44)

During the design phase, it is important to develop a(n) ____________ illustrating what the desired final output should be.

(Short Answer)
4.9/5
(35)

Constructors ____.

(Multiple Choice)
4.8/5
(36)

Constructors should be defined with a ____ access modifier.

(Multiple Choice)
4.8/5
(41)

Which of the following is NOT a true statement relating to constructors?

(Multiple Choice)
4.8/5
(33)

Accessors, mutators, and other instance methods are normally defined with what type of access modifier?

(Multiple Choice)
4.9/5
(34)
Showing 41 - 60 of 75
close modal

Filters

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