Exam 4: Creating Your Own Classes

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

After the class diagram is created,add the names of data members or fields and methods using the_________________ section.

(Short Answer)
4.9/5
(84)

The static keyword must not be used with ____.

(Multiple Choice)
4.8/5
(84)

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

(Short Answer)
4.9/5
(58)

Use a type prefix,such as C for class name.For example,a student class should be named CStudent.

(True/False)
4.8/5
(77)

Constructors are used to ____________ a class.

(Short Answer)
4.8/5
(77)

Normally data members are defined to have ____ access.

(Multiple Choice)
4.9/5
(69)

Which of the following is NOT one of the inherited member methods of the object class?

(Multiple Choice)
4.9/5
(74)

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

(Multiple Choice)
4.8/5
(62)

C# is an object-oriented language as such all the code that you write has to be placed in a(n)____________.

(Short Answer)
4.9/5
(77)

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

(Multiple Choice)
4.9/5
(81)

A private access modifier is always associated with data members,methods,and constructors of a class.

(True/False)
4.8/5
(83)

When you define a class,you can use ____ to display all public members of the class (once an object is instantiated).

(Multiple Choice)
4.8/5
(85)

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

The body of the constructor methods consist primarily of ____________.

(Short Answer)
4.8/5
(90)

Accessor and mutators are ____________ methods

(Short Answer)
4.9/5
(86)

A property looks like a method because it directly represents a storage location.

(True/False)
4.7/5
(73)

Fields or data members are also called ____________.

(Short Answer)
4.8/5
(80)

The default constructor normally has an empty body.

(True/False)
4.8/5
(89)

After a project has been created and a new class added to your application,you can use the ____________ Window in Visual Studio to create a class diagram.

(Short Answer)
4.9/5
(76)

Instance methods must have the static keyword in their heading.

(True/False)
5.0/5
(78)
Showing 21 - 40 of 75
close modal

Filters

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