CH2 CSharprrr

Pataasin ang iyong marka sa homework at exams ngayon gamit ang Quizwiz!

entity

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

True

A class named River will have a constructor named River.

False

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

data field, method

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

getters

Accessors are also referred to as ____.

public

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

class

C# is an object-oriented language. All the code for an application must be placed in a(n) ____.

all of the above.

Constructors ____.

use the same identifier as the class

Constructors differ from other methods in that constructors ____.

False

If you overwrite the ToString( ) method, you should also override the other methods of the object class.

True

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

instance methods

The static keyword must not be used with ____.

write more than one constructor

To add full functionality to your classes, ____.

objects

To program an object-oriented solution begin by determining what ____ are needed in the solution.

False

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

False

When you define a property, you can define the set without the get, but you must define a get.

True

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

The default constructor must be the first one written for the class.

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

Mutators

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


Kaugnay na mga set ng pag-aaral

Irene Gold part 2 everything but general dx

View Set

Project Management Final Ch. 1-12

View Set

70-483 Debug applications and implement security

View Set

Chapter 3 - Ebusiness: Electronic Business Value

View Set

YSaaaหลักพื้นฐานความมั่นคง

View Set

Med Surg. Gastrointestinal & Renal Care

View Set

4. Connective Tissue Cells: General & Fibroblasts

View Set

Chemical vs. Mechanical Digestion

View Set