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)
5.0/5
(84)

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

(True/False)
4.9/5
(78)

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

(Multiple Choice)
4.8/5
(63)

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
(80)

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
(88)

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

(True/False)
4.8/5
(59)

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

(True/False)
4.9/5
(74)

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

(Short Answer)
4.7/5
(78)

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

(Multiple Choice)
4.7/5
(80)

Instance methods are ____.

(Multiple Choice)
4.9/5
(68)

Constructors are used to ____________ a class.

(Short Answer)
4.8/5
(77)

Accessors are also referred to as ____.

(Multiple Choice)
4.9/5
(79)

In order to test a class, ____.

(Multiple Choice)
4.9/5
(90)

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

(True/False)
4.9/5
(93)

Mutators are special types of methods used to create objects.

(True/False)
4.8/5
(82)

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

(Short Answer)
4.9/5
(74)

Constructors ____.

(Multiple Choice)
4.8/5
(72)

Constructors should be defined with a ____ access modifier.

(Multiple Choice)
4.8/5
(73)

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

(Multiple Choice)
4.8/5
(76)

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

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

Filters

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