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.

Free
(Short Answer)
4.7/5
(25)
Correct Answer:
Verified

Class Details

plush.PricePerSqYard = 40.99; If proper naming conventions were used in the above statement, which of the following statements is true?

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

D

Local variables ____.

Free
(Multiple Choice)
4.9/5
(43)
Correct Answer:
Verified

A

Accessors are special types of methods in C# used to instantiate an object of the class.

(True/False)
4.8/5
(36)

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

(Multiple Choice)
4.9/5
(42)

If berber is an object, the statement Console.Write(berber); automatically invokes the ____________ method.

(Short Answer)
4.9/5
(37)

The default constructor normally has an empty body.

(True/False)
4.8/5
(35)

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

(Short Answer)
4.8/5
(39)

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

(Short Answer)
4.9/5
(33)

A class is an instance of an object.

(True/False)
4.8/5
(41)

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

(True/False)
4.9/5
(30)

The body of the constructor methods consist primarily of ____________.

(Short Answer)
4.7/5
(40)

When you define methods of a class, you are defining its behaviors, in terms of what kinds of things it can do.

(True/False)
4.9/5
(39)

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

(True/False)
4.9/5
(42)

A class named River will have a constructor named River.

(True/False)
4.8/5
(32)

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

(True/False)
4.8/5
(39)

As with overloaded methods, ____________ must differ for constructors.

(Short Answer)
4.9/5
(38)

____________ access modifier is always associated with constructors.

(Short Answer)
4.8/5
(32)

When you define a class method, you define its characteristics or fields in terms of the data.

(True/False)
4.7/5
(31)

Normally data members are defined to have ____ access.

(Multiple Choice)
4.9/5
(37)
Showing 1 - 20 of 75
close modal

Filters

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